Source code of Windows XP (NT5)
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.

66 lines
2.0 KiB

  1. /**************************************************************************
  2. * Copyright 1998-1999 Microsoft Corporation. All Rights Reserved.
  3. *
  4. * File Name: I I S H E L P E R . H P P
  5. *
  6. * Purpose: class definition of CIISResponse
  7. *
  8. * Creator:
  9. * (dd/mm/yy)
  10. * Date: 13/4/1999
  11. *
  12. * HISTORY:
  13. * Modified By:
  14. * Modified Date:
  15. * Reason:
  16. *
  17. *************************************************************************/
  18. #if !defined(_IISRESP_HPP_)
  19. #define _IISRESP_HPP_
  20. #define CZ_CGI_ALL_HTTP "ALL_HTTP"
  21. #define CZ_CGI_CONTENT_TYPE "CONTENT_TYPE"
  22. #define CZ_CGI_CONTENT_LENGTH "CONTENT_LENGTH"
  23. #define CZ_CGI_SOAPMethodName "soapmethodname:"
  24. #define CZ_CGI_SOAPAction "soapaction:"
  25. #define CZ_CGI_PATH_INFO "PATH_INFO"
  26. /**************************************************************************
  27. * Include files
  28. *
  29. *************************************************************************/
  30. /**************************************************************************
  31. * Class Name: CIISResponse
  32. *
  33. *
  34. *************************************************************************/
  35. class CIISHelper
  36. {
  37. // static methods
  38. public:
  39. static BOOL SendResponse(EXTENSION_CONTROL_BLOCK* pECB, DWORD dwStatus, LPCSTR pStatus, DWORD dwStatusSize, LPCSTR pHeader, DWORD dwHeaderSize, LPCSTR pBody, DWORD dwBodySize, BOOL bReqDone, BOOL fConnectionClosed);
  40. static BOOL SendResponse(EXTENSION_CONTROL_BLOCK* pECB, DWORD dwStatus, BOOL bReqDone = TRUE);
  41. static HRESULT GetECBServerVariable(IN EXTENSION_CONTROL_BLOCK * pECB, LPCSTR name, LPVOID* ppBuf, LPDWORD pLen) throw();
  42. static HRESULT GetECBBodyData(IN EXTENSION_CONTROL_BLOCK * pECB, PBYTE buf, DWORD len, DWORD* copied);
  43. // static methods
  44. private:
  45. static BOOL FillOutHeaderInfo(DWORD dwStatus, LPSTR szStatus, LPSTR szHeader, LPSTR szMessage);
  46. // static attributes
  47. // private:
  48. // static HMODULE s_hModules; // MSMQ FormatName RequestQueue
  49. };
  50. #endif // !defined(_IISRESP_HPP_)