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.

62 lines
2.0 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: module.h
  7. //
  8. // Contents: CCertManageExitModuleSample definition
  9. //
  10. //---------------------------------------------------------------------------
  11. #include "certxsam.h"
  12. #include "resource.h" // main symbols
  13. class CCertManageExitModuleSample:
  14. public CComDualImpl<ICertManageModule, &IID_ICertManageModule, &LIBID_CERTEXITSAMPLELib>,
  15. public CComObjectRoot,
  16. public CComCoClass<CCertManageExitModuleSample, &CLSID_CCertManageExitModuleSample>
  17. {
  18. public:
  19. CCertManageExitModuleSample() {}
  20. ~CCertManageExitModuleSample() {}
  21. BEGIN_COM_MAP(CCertManageExitModuleSample)
  22. COM_INTERFACE_ENTRY(IDispatch)
  23. COM_INTERFACE_ENTRY(ICertManageModule)
  24. END_COM_MAP()
  25. DECLARE_NOT_AGGREGATABLE(CCertManageExitModuleSample)
  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. CCertManageExitModuleSample,
  31. wszCLASS_CERTMANAGEEXITMODULESAMPLE TEXT(".1"),
  32. wszCLASS_CERTMANAGEEXITMODULESAMPLE,
  33. IDS_CERTMANAGEEXITMODULE_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. };