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.

43 lines
1.4 KiB

  1. // Util.h : Declaration of the CUtil
  2. #ifndef __UTIL_H_
  3. #define __UTIL_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CUtil
  7. class ATL_NO_VTABLE CUtil :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CUtil, &CLSID_Util>,
  10. public IDispatchImpl<IUtil, &IID_IUtil, &LIBID_COMPATUILib>
  11. {
  12. public:
  13. CUtil()
  14. {
  15. }
  16. DECLARE_REGISTRY_RESOURCEID(IDR_UTIL)
  17. DECLARE_PROTECT_FINAL_CONSTRUCT()
  18. BEGIN_COM_MAP(CUtil)
  19. COM_INTERFACE_ENTRY(IUtil)
  20. COM_INTERFACE_ENTRY(IDispatch)
  21. END_COM_MAP()
  22. // IUtil
  23. public:
  24. STDMETHOD(IsExecutableFile)(/*[in]*/BSTR bstrPath, /*[out, retval]*/BOOL* pbExecutableFile);
  25. STDMETHOD(IsSystemTarget)(/*[in]*/BSTR bstrPath, /*[out, retval]*/BOOL* pbSystemTarget);
  26. STDMETHOD(GetExePathFromObject)(/*[in]*/BSTR pszPath, /*[out, retval]*/VARIANT* pExePath);
  27. STDMETHOD(CheckAdminPrivileges)(/*[out, retval]*/ BOOL* pVal);
  28. STDMETHOD(SetItemKeys)(/*[in]*/BSTR pszPath, /*[in]*/VARIANT* pKeys, /*[out, retval]*/BOOL* pVal);
  29. STDMETHOD(GetItemKeys)(/*[in]*/BSTR pszPath, /*[out, retval]*/VARIANT* pszKeys);
  30. STDMETHOD(RemoveArgs)(BSTR sVar, VARIANT* pOut);
  31. STDMETHOD(RunApplication)(/*[in]*/BSTR pLayers, /*[in]*/BSTR pszCmdLine,
  32. /*[in]*/BOOL bEnableLog, /*[out,retval]*/DWORD* pResult);
  33. STDMETHOD(IsCompatWizardDisabled)(/*[out, retval]*/BOOL* pbDisabled);
  34. };
  35. #endif //__UTIL_H_