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.

66 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1995 - 1999
  6. //
  7. // File: module.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h" // main symbols
  11. class CCertManagePolicyModule:
  12. public CComDualImpl<ICertManageModule, &IID_ICertManageModule, &LIBID_CERTPOLICYLib>,
  13. public CComObjectRoot,
  14. public CComCoClass<CCertManagePolicyModule, &CLSID_CCertManagePolicyModule>
  15. {
  16. public:
  17. CCertManagePolicyModule() {m_hWnd = NULL;}
  18. ~CCertManagePolicyModule() {}
  19. BEGIN_COM_MAP(CCertManagePolicyModule)
  20. COM_INTERFACE_ENTRY(IDispatch)
  21. COM_INTERFACE_ENTRY(ICertManageModule)
  22. END_COM_MAP()
  23. DECLARE_NOT_AGGREGATABLE(CCertManagePolicyModule)
  24. // Remove the comment from the line above if you don't want your object to
  25. // support aggregation. The default is to support it
  26. // UNDONE UNDONE
  27. DECLARE_REGISTRY(
  28. CCertManagePolicyModule,
  29. wszCLASS_CERTMANAGEPOLICYMODULE TEXT(".1"),
  30. wszCLASS_CERTMANAGEPOLICYMODULE,
  31. IDS_CERTMANAGEPOLICYMODULE_DESC,
  32. THREADFLAGS_BOTH)
  33. // ICertManageModule
  34. public:
  35. STDMETHOD (GetProperty) (
  36. /* [in] */ const BSTR strConfig,
  37. /* [in] */ BSTR strStorageLocation,
  38. /* [in] */ BSTR strPropertyName,
  39. /* [in] */ LONG dwFlags,
  40. /* [retval][out] */ VARIANT __RPC_FAR *pvarProperty);
  41. STDMETHOD (SetProperty)(
  42. /* [in] */ const BSTR strConfig,
  43. /* [in] */ BSTR strStorageLocation,
  44. /* [in] */ BSTR strPropertyName,
  45. /* [in] */ LONG dwFlags,
  46. /* [in] */ VARIANT const __RPC_FAR *pvarProperty);
  47. STDMETHOD (Configure)(
  48. /* [in] */ const BSTR strConfig,
  49. /* [in] */ BSTR strStorageLocation,
  50. /* [in] */ LONG dwFlags);
  51. HWND m_hWnd;
  52. private:
  53. HRESULT GetAdmin(ICertAdmin2 **ppAdmin);
  54. };