Web . HTML, CGI ISAPI



HttpExtensionProc


, DLL ISAPI. HttpExtensionProc :

DWORD WINAPI HttpExtensionProc(EXTENSION_CONTROL_BLOCK*pECB);

HttpExtensionProc - EXTENSION_CONTROL_BLOCK, httpext.h:

typedef struct _EXTENSION_CONTROL_BLOCK

{

DWORD cbSize; //

DWORD dwVersion; // ISAPI

HCONN ConnID; //

DWORD dwHttpStatusCode; // HTTP

CHAR lpszLogData[HSE_LOG_BUFFER_LEN]; // ,

// ,

// ,

LPSTR lpszMethod; // REQUEST_METHOD

LPSTR lpszQueryString; // QUERY_STRING

LPSTR lpszPathInfo; // PATH_INFO

LPSTR lpszPathTranslated; // PATH_TRANSLATED

DWORD cbTotalBytes; // ,

//

DWORD cbAvailable; //

LPBYTE lpbData; //

// cbAvailable

LPSTR lpszContentType; //

// GetServerVariable

BOOL (WINAPI * GetServerVariable)(HCONN hConn,

LPSTR lpszVariableName, LPVOID lpvBuffer, LPDWORD lpdwSize);

// WriteClient

BOOL (WINAPI * WriteClient)(HCONN ConnID,

LPVOID Buffer, LPDWORD lpdwBytes, DWORD dwReserved);

// ReadClient

//

BOOL (WINAPI * ReadClient) (HCONN ConnID,

LPVOID lpvBuffer, LPDWORD lpdwSize);

// ServerSupportFunction

//