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.

65 lines
2.1 KiB

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