📄 iis.h
字号:
/* * Copyright (c) 1999-2001 Caucho Technology. All rights reserved. * * Caucho Technology permits redistribution, modification and use * of this file in source and binary form ("the Software") under the * Caucho Public License ("the License"). In particular, the following * conditions must be met: * * 1. Each copy or derived work of the Software must preserve the copyright * notice and this notice unmodified. * * 2. Redistributions of the Software in source or binary form must include * an unmodified copy of the License, normally in a plain ASCII text * * 3. The names "Resin" or "Caucho" are trademarks of Caucho Technology and * may not be used to endorse products derived from this software. * "Resin" or "Caucho" may not appear in the names of products derived * from this software. * * 4. Caucho Technology requests that attribution be given to Resin * in any manner possible. We suggest using the "Resin Powered" * button or creating a "powered by Resin(tm)" link to * http://www.caucho.com for each page served by Resin. * * This Software is provided "AS IS," without a warranty of any kind. * ALL EXPRESS OR IMPLIED REPRESENTATIONS AND WARRANTIES, INCLUDING ANY * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. * CAUCHO TECHNOLOGY AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES * SUFFERED BY LICENSEE OR ANY THIRD PARTY AS A RESULT OF USING OR * DISTRIBUTING SOFTWARE. IN NO EVENT WILL CAUCHO OR ITS LICENSORS BE LIABLE * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, * CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND * REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR * INABILITY TO USE SOFTWARE, EVEN IF HE HAS BEEN ADVISED OF THE POSSIBILITY * OF SUCH DAMAGES. * * @author Scott Ferguson * * $Id: iis.h,v 1.3 2001/11/14 21:23:16 resin Exp $ *//* * Anh LE(ngoc-anh.le@centraliens.net) : * IIS5.0 allows ISAPI extension to use IIS authentification * by introducing SF_NOTIFY_AUTH_COMPLETE event notification for ISAPI filter * So we will replace SF_NOTIFY_PREPROC_HEADERS by SF_NOTIFY_AUTH_COMPLETE * for IIS5.0/Windows2000. * Windows 2000 SP1 is strongly recommended because of a bug with this event */#ifndef _CAUCHO_IIS_H#define _CAUCHO_IIS_H// Anh : // Only httpfilt.h in the Windows 2000 SDK include the SF_NOTIFY_AUTH_COMPLETE definition#ifndef SF_NOTIFY_AUTH_COMPLETE#define SF_NOTIFY_AUTH_COMPLETE 0x04000000typedef struct _HTTP_FILTER_AUTH_COMPLETE_INFO{ // // For SF_NOTIFY_AUTH_COMPLETE, retrieves the specified header value. // Header names should include the trailing ':'. The special values // 'method', 'url' and 'version' can be used to retrieve the individual // portions of the request line // BOOL (WINAPI * GetHeader) ( struct _HTTP_FILTER_CONTEXT * pfc, LPSTR lpszName, LPVOID lpvBuffer, LPDWORD lpdwSize ); // // Replaces this header value to the specified value. To delete a header, // specified a value of '\0'. // BOOL (WINAPI * SetHeader) ( struct _HTTP_FILTER_CONTEXT * pfc, LPSTR lpszName, LPSTR lpszValue ); // // Adds the specified header and value // BOOL (WINAPI * AddHeader) ( struct _HTTP_FILTER_CONTEXT * pfc, LPSTR lpszName, LPSTR lpszValue ); // // Get the authenticated user impersonation token // BOOL (WINAPI * GetUserToken) ( struct _HTTP_FILTER_CONTEXT * pfc, HANDLE * phToken ); // // Status code to use when sending response // DWORD HttpStatus; // // Determines whether to reset auth if URL changed // BOOL fResetAuth; // // Reserved // DWORD dwReserved; } HTTP_FILTER_AUTH_COMPLETE_INFO, *PHTTP_FILTER_AUTH_COMPLETE_INFO; #endif// End Anh#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -