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.

37 lines
1.1 KiB

  1. // PolicyTemplateManager.h : Declaration of the CPolicyTemplateManager
  2. #ifndef __POLICYTEMPLATEMANAGER_H_
  3. #define __POLICYTEMPLATEMANAGER_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CPolicyTemplateManager
  7. class ATL_NO_VTABLE CPolicyTemplateManager :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CPolicyTemplateManager, &CLSID_PolicyTemplateManager>,
  10. public IDispatchImpl<IPolicyTemplateManager, &IID_IPolicyTemplateManager, &LIBID_SCHEMAMANAGERLib>
  11. {
  12. public:
  13. CPolicyTemplateManager();
  14. ~CPolicyTemplateManager();
  15. DECLARE_REGISTRY_RESOURCEID(IDR_POLICYTEMPLATEMANAGER)
  16. DECLARE_PROTECT_FINAL_CONSTRUCT()
  17. BEGIN_COM_MAP(CPolicyTemplateManager)
  18. COM_INTERFACE_ENTRY(IPolicyTemplateManager)
  19. COM_INTERFACE_ENTRY(IDispatch)
  20. END_COM_MAP()
  21. // ISomFilterManager
  22. public:
  23. STDMETHOD(RunManager)(/*[in]*/HWND hwndParent);
  24. STDMETHOD(ConnectToWMI)();
  25. CComPtr<IWbemServices>m_pIWbemServices;
  26. HWND m_hWnd;
  27. };
  28. #endif //__POLICYTEMPLATEMANAGER_H_