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.

74 lines
1.9 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: config.h
  7. //
  8. // Contents: Declaration of CCertConfig
  9. //
  10. //---------------------------------------------------------------------------
  11. #include "cscomres.h" // main symbols
  12. /////////////////////////////////////////////////////////////////////////////
  13. // certcli
  14. class ATL_NO_VTABLE CCertConfig:
  15. public IDispatchImpl<ICertConfig2, &IID_ICertConfig2, &LIBID_CERTCLIENTLib>,
  16. public ISupportErrorInfoImpl<&IID_ICertConfig2>,
  17. public CComObjectRoot,
  18. public CComCoClass<CCertConfig, &CLSID_CCertConfig>,
  19. public CCertConfigPrivate
  20. {
  21. public:
  22. CCertConfig() { }
  23. ~CCertConfig();
  24. BEGIN_COM_MAP(CCertConfig)
  25. COM_INTERFACE_ENTRY(IDispatch)
  26. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  27. COM_INTERFACE_ENTRY(ICertConfig)
  28. COM_INTERFACE_ENTRY(ICertConfig2)
  29. END_COM_MAP()
  30. DECLARE_NOT_AGGREGATABLE(CCertConfig)
  31. // Remove the comment from the line above if you don't want your object to
  32. // support aggregation. The default is to support it
  33. DECLARE_REGISTRY(
  34. CCertConfig,
  35. wszCLASS_CERTCONFIG TEXT(".1"),
  36. wszCLASS_CERTCONFIG,
  37. IDS_CERTCONFIG_DESC,
  38. THREADFLAGS_BOTH)
  39. // ICertConfig
  40. public:
  41. STDMETHOD(Reset)(
  42. /* [in] */ LONG Index,
  43. /* [out, retval] */ LONG __RPC_FAR *pCount);
  44. STDMETHOD(Next)(
  45. /* [out, retval] */ LONG __RPC_FAR *pIndex);
  46. STDMETHOD(GetField)(
  47. /* [in] */ BSTR const strFieldName,
  48. /* [out, retval] */ BSTR __RPC_FAR *pstrOut);
  49. STDMETHOD(GetConfig)(
  50. /* [in] */ LONG Flags,
  51. /* [out, retval] */ BSTR __RPC_FAR *pstrOut);
  52. // ICertConfig2
  53. public:
  54. STDMETHOD(SetSharedFolder)(
  55. /* [in] */ const BSTR strSharedFolder);
  56. private:
  57. HRESULT _SetErrorInfo(
  58. IN HRESULT hrError,
  59. IN WCHAR const *pwszDescription);
  60. };