Source code of Windows XP (NT5)
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.

56 lines
1.5 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: getconf.h
  7. //
  8. // Contents: Declaration of CCertGetConfig
  9. //
  10. //---------------------------------------------------------------------------
  11. #include "clibres.h" // main symbols
  12. /////////////////////////////////////////////////////////////////////////////
  13. // certcli
  14. class CCertGetConfig:
  15. public IDispatchImpl<ICertGetConfig, &IID_ICertGetConfig, &LIBID_CERTCLIENTLib>,
  16. public ISupportErrorInfoImpl<&IID_ICertGetConfig>,
  17. public CComObjectRoot,
  18. public CComCoClass<CCertGetConfig, &CLSID_CCertGetConfig>,
  19. public CCertConfigPrivate
  20. {
  21. public:
  22. CCertGetConfig() { }
  23. ~CCertGetConfig();
  24. BEGIN_COM_MAP(CCertGetConfig)
  25. COM_INTERFACE_ENTRY(IDispatch)
  26. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  27. COM_INTERFACE_ENTRY(ICertGetConfig)
  28. END_COM_MAP()
  29. DECLARE_NOT_AGGREGATABLE(CCertGetConfig)
  30. // Remove the comment from the line above if you don't want your object to
  31. // support aggregation. The default is to support it
  32. DECLARE_REGISTRY(
  33. CCertGetConfig,
  34. wszCLASS_CERTGETCONFIG TEXT(".1"),
  35. wszCLASS_CERTGETCONFIG,
  36. IDS_CERTGETCONFIG_DESC,
  37. THREADFLAGS_BOTH)
  38. // ICertGetConfig
  39. public:
  40. STDMETHOD(GetConfig)(
  41. /* [in] */ LONG Flags,
  42. /* [retval][out] */ BSTR __RPC_FAR *pstrOut);
  43. private:
  44. HRESULT _SetErrorInfo(
  45. IN HRESULT hrError,
  46. IN WCHAR const *pwszDescription);
  47. };