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.

70 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: caddroot.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // caddroot.h : Declaration of the Ccaddroot
  11. #ifndef __CADDROOT_H_
  12. #define __CADDROOT_H_
  13. #include "instres.h" // main symbols
  14. #include "resource.h" // main symbols
  15. /////////////////////////////////////////////////////////////////////////////
  16. // Ccaddroot
  17. class ATL_NO_VTABLE Ccaddroot :
  18. public CComObjectRootEx<CComSingleThreadModel>,
  19. public CComCoClass<Ccaddroot, &CLSID_caddroot>,
  20. public IDispatchImpl<Icaddroot, &IID_Icaddroot, &LIBID_XADDROOTLib>,
  21. public IObjectSafety
  22. {
  23. public:
  24. Ccaddroot()
  25. {
  26. dwEnabledSafteyOptions = 0;
  27. }
  28. DECLARE_REGISTRY_RESOURCEID(IDR_CADDROOT)
  29. DECLARE_PROTECT_FINAL_CONSTRUCT()
  30. BEGIN_COM_MAP(Ccaddroot)
  31. COM_INTERFACE_ENTRY(Icaddroot)
  32. COM_INTERFACE_ENTRY(IDispatch)
  33. COM_INTERFACE_ENTRY(IObjectSafety)
  34. END_COM_MAP()
  35. // Icaddroot
  36. public:
  37. DWORD dwEnabledSafteyOptions;
  38. HRESULT virtual STDMETHODCALLTYPE AddRoots(BSTR wszCTL);
  39. HRESULT virtual STDMETHODCALLTYPE AddCA(BSTR wszX509);
  40. virtual HRESULT __stdcall Ccaddroot::GetInterfaceSafetyOptions(
  41. /* [in] */ REFIID riid,
  42. /* [out] */ DWORD __RPC_FAR *pdwSupportedOptions,
  43. /* [out] */ DWORD __RPC_FAR *pdwEnabledOptions);
  44. virtual HRESULT __stdcall Ccaddroot::SetInterfaceSafetyOptions(
  45. /* [in] */ REFIID riid,
  46. /* [in] */ DWORD dwOptionSetMask,
  47. /* [in] */ DWORD dwEnabledOptions);
  48. };
  49. BYTE * HTTPGet(const WCHAR * wszURL, DWORD * pcbReceiveBuff);
  50. #endif //__CADDROOT_H_