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.

73 lines
996 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name :
  4. DataChannel.hxx
  5. Abstract:
  6. Wrapper object for dealing with the Data Channel
  7. Author:
  8. Murali R. Krishnan ( MuraliK ) 20-Oct-1998
  9. Project:
  10. IIS Worker Process
  11. --*/
  12. # ifndef _APPPOOL_HXX_
  13. # define _APPPOOL_HXX_
  14. #include <locks.h>
  15. //
  16. // class UL_APP_POOL
  17. //
  18. // Encapsulates the data channel for UL
  19. // The data channel is used for all types of request processing
  20. //
  21. class UL_APP_POOL
  22. {
  23. public:
  24. UL_APP_POOL(
  25. VOID
  26. );
  27. ~UL_APP_POOL(
  28. VOID
  29. );
  30. HRESULT
  31. Initialize(
  32. LPCWSTR pszAppPoolName
  33. );
  34. HANDLE
  35. QueryAndLockHandle(
  36. VOID
  37. );
  38. HRESULT
  39. UnlockHandle(
  40. VOID
  41. );
  42. HRESULT
  43. Cleanup(
  44. VOID
  45. );
  46. private:
  47. HANDLE _hAppPool;
  48. CReaderWriterLock3 _Lock;
  49. }; // class UL_APP_POOL
  50. #endif