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.

82 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name :
  4. ControlChannel.hxx
  5. Abstract:
  6. Wrapper object for dealing with the Control Channel
  7. Author:
  8. Murali R. Krishnan ( MuraliK ) 15-Oct-1998
  9. Project:
  10. IIS Worker Process
  11. --*/
  12. # ifndef _CONTROL_CHANNEL_HXX_
  13. # define _CONTROL_CHANNEL_HXX_
  14. /************************************************************
  15. * Include Headers
  16. ************************************************************/
  17. /************************************************************
  18. * Type Definitions
  19. ************************************************************/
  20. /*++
  21. class UL_CONTROL_CHANNEL
  22. o Encapsulates the control channel for UL.
  23. --*/
  24. #include <MultiSZ.hxx>
  25. class UL_CONTROL_CHANNEL
  26. {
  27. public:
  28. UL_CONTROL_CHANNEL(void)
  29. {
  30. m_hControlChannel = NULL;
  31. m_hAppPool = NULL;
  32. HTTP_SET_NULL_ID(&m_ConfigGroupId);
  33. }
  34. ~UL_CONTROL_CHANNEL(void)
  35. { Cleanup(); }
  36. ULONG
  37. Initialize(
  38. IN MULTISZ& mszURLList,
  39. IN LPCWSTR pwszAppPoolName,
  40. IN DWORD dwSiteId
  41. );
  42. ULONG
  43. Cleanup(void);
  44. private:
  45. HANDLE m_hControlChannel;
  46. HTTP_CONFIG_GROUP_ID m_ConfigGroupId;
  47. HANDLE m_hAppPool;
  48. ULONG
  49. AddURLToConfigGroup(
  50. IN LPCWSTR pwszURL,
  51. IN DWORD dwSiteId
  52. );
  53. }; // class UL_CONTROL_CHANNEL
  54. # endif // _CONTROL_CHANNEL_HXX_
  55. /************************ End of File ***********************/