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.

64 lines
2.1 KiB

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