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.

97 lines
1.7 KiB

  1. #ifndef __SSLCONFIGCHANGEPROV__HXX_
  2. #define __SSLINFOPROVSERVER__HXX_
  3. /*++
  4. Copyright (c) 2001 Microsoft Corporation
  5. Module Name :
  6. sslconfigchangeprov.hxx
  7. Abstract:
  8. SSL CONFIG PROV server
  9. Listens for metabase notifications related to SSL
  10. and informs connected client appropriately
  11. Author:
  12. Jaroslav Dunajsky April-24-2001
  13. Environment:
  14. Win32 - User Mode
  15. Project:
  16. Stream Filter Worker Process
  17. --*/
  18. #include <sslconfigpipe.hxx>
  19. #include <sslconfigcommon.hxx>
  20. class MB_LISTENER;
  21. class SSL_CONFIG_CHANGE_PROV_SERVER: protected SSL_CONFIG_PIPE
  22. {
  23. public:
  24. SSL_CONFIG_CHANGE_PROV_SERVER()
  25. :
  26. SSL_CONFIG_PIPE(),
  27. _pAdminBase( NULL )
  28. {
  29. }
  30. ~SSL_CONFIG_CHANGE_PROV_SERVER()
  31. {
  32. }
  33. HRESULT
  34. Initialize(
  35. VOID
  36. );
  37. HRESULT
  38. Terminate(
  39. VOID
  40. );
  41. HRESULT
  42. MetabaseChangeNotification(
  43. DWORD dwMDNumElements,
  44. MD_CHANGE_OBJECT pcoChangeList[]
  45. );
  46. protected:
  47. virtual
  48. HRESULT
  49. PipeListener(
  50. VOID
  51. );
  52. virtual
  53. BOOL
  54. QueryEnablePipeListener(
  55. VOID
  56. )
  57. {
  58. //
  59. // enable launching PipeListener() on private thread
  60. // during Initialize() call
  61. //
  62. return TRUE;
  63. }
  64. private:
  65. SSL_CONFIG_CHANGE_PROV_SERVER( const SSL_CONFIG_CHANGE_PROV_SERVER& );
  66. SSL_CONFIG_CHANGE_PROV_SERVER& operator=( const SSL_CONFIG_CHANGE_PROV_SERVER& );
  67. // access to metabase
  68. IMSAdminBase * _pAdminBase;
  69. MB_LISTENER * _pListener;
  70. };
  71. #endif