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.

50 lines
1.7 KiB

  1. //=======================================================================
  2. //
  3. // Copyright (C) Microsoft Corporation, 1998 - 1999 All Rights Reserved.
  4. //
  5. // File: CWUpd.h : Declaration of the CCWUpdInfo
  6. //
  7. //=======================================================================
  8. #ifndef __CWUPDINFO_H_
  9. #define __CWUPDINFO_H_
  10. #include "resource.h" // main symbols
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CCWUpdInfo
  13. class ATL_NO_VTABLE CCWUpdInfo :
  14. public CComObjectRootEx<CComSingleThreadModel>,
  15. public CComCoClass<CCWUpdInfo, &CLSID_CWUpdInfo>,
  16. public IDispatchImpl<ICWUpdInfo, &IID_ICWUpdInfo, &LIBID_WUPDINFOLib>
  17. {
  18. public:
  19. CCWUpdInfo()
  20. {
  21. }
  22. DECLARE_REGISTRY_RESOURCEID(IDR_CWUPDINFO)
  23. BEGIN_COM_MAP(CCWUpdInfo)
  24. COM_INTERFACE_ENTRY(ICWUpdInfo)
  25. COM_INTERFACE_ENTRY(IDispatch)
  26. END_COM_MAP()
  27. // ICWUpdInfo
  28. public:
  29. STDMETHOD(IsRegistered)(/*[out, retval]*/ VARIANT_BOOL * pfRegistered);
  30. STDMETHOD(IsConnected)(/*[out, retval]*/ VARIANT_BOOL * pfConnected);
  31. STDMETHOD(GetPlatform)(/*[out, retval]*/ BSTR * pbstrPlatform);
  32. STDMETHOD(GetLanguage)(/*[out, retval]*/ BSTR * pbstrLanguage);
  33. STDMETHOD(GetUserLanguage)(/*[out, retval]*/ BSTR * pbstrUserLanguage);
  34. STDMETHOD(GetMachineLanguage)(/*[out, retval]*/ BSTR * pbstrMachineLanguage);
  35. STDMETHOD(GetMTSOEMURL)(/*[out, retval]*/ BSTR *pbstrURL);
  36. STDMETHOD(GetMTSURL)(BSTR bstrURLArgs,
  37. /*[out, retval]*/ BSTR *pbstrURL);
  38. STDMETHOD(GotoMTSOEMURL)(/*[out, retval]*/ int *pnRetval);
  39. STDMETHOD(GotoMTSURL)(/*[in]*/ BSTR bstrURLArgs);
  40. STDMETHOD(IsDisabled)(/*[out, retval]*/ BOOL *pfDisabled);
  41. STDMETHOD(GetWinUpdURL)(/*[out, retval]*/ BSTR *pbstrURL);
  42. };
  43. #endif //__CWUPDINFO_H_