Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.1 KiB

  1. #ifdef __midl
  2. #define HSE_LOG_BUFFER_LEN 80
  3. typedef LPVOID HCONN;
  4. typedef BYTE * LPBYTE;
  5. //
  6. // structure passed to extension procedure on a new request
  7. //
  8. typedef struct _EXTENSION_CONTROL_BLOCK {
  9. DWORD cbSize; // size of this struct.
  10. DWORD dwVersion; // version info of this spec
  11. HCONN ConnID; // Context number not to be modified!
  12. DWORD dwHttpStatusCode; // HTTP Status code
  13. CHAR lpszLogData[HSE_LOG_BUFFER_LEN];// null terminated log info specific to this Extension DLL
  14. LPSTR lpszMethod; // REQUEST_METHOD
  15. LPSTR lpszQueryString; // QUERY_STRING
  16. LPSTR lpszPathInfo; // PATH_INFO
  17. LPSTR lpszPathTranslated; // PATH_TRANSLATED
  18. DWORD cbTotalBytes; // Total bytes indicated from client
  19. DWORD cbAvailable; // Available number of bytes
  20. LPBYTE lpbData; // pointer to cbAvailable bytes
  21. LPSTR lpszContentType; // Content type of client data
  22. BOOL (* GetServerVariable) ( HCONN hConn,
  23. LPSTR lpszVariableName,
  24. LPVOID lpvBuffer,
  25. LPDWORD lpdwSize );
  26. BOOL (* WriteClient) ( HCONN ConnID,
  27. LPVOID Buffer,
  28. LPDWORD lpdwBytes,
  29. DWORD dwReserved );
  30. BOOL (* ReadClient) ( HCONN ConnID,
  31. LPVOID lpvBuffer,
  32. LPDWORD lpdwSize );
  33. BOOL (* ServerSupportFunction)( HCONN hConn,
  34. DWORD dwHSERequest,
  35. LPVOID lpvBuffer,
  36. LPDWORD lpdwSize,
  37. LPDWORD lpdwDataType );
  38. } EXTENSION_CONTROL_BLOCK, *LPEXTENSION_CONTROL_BLOCK;
  39. #endif