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.

76 lines
2.4 KiB

  1. /********************************************************************
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. PCH_Sysinfo.H
  5. Abstract:
  6. WBEM provider class definition for PCH_Sysinfo class
  7. Revision History:
  8. Ghim-Sim Chua (gschua) 04/27/99
  9. - Created
  10. ********************************************************************/
  11. // Property set identification
  12. //============================
  13. #ifndef _PCH_Sysinfo_H_
  14. #define _PCH_Sysinfo_H_
  15. #define PROVIDER_NAME_PCH_SYSINFO "PCH_Sysinfo"
  16. // Property name externs -- defined in PCH_Sysinfo.cpp
  17. //=================================================
  18. extern const WCHAR* pTimeStamp ;
  19. extern const WCHAR* pChange ;
  20. extern const WCHAR* pIEVersion ;
  21. extern const WCHAR* pInstall ;
  22. extern const WCHAR* pMode ;
  23. extern const WCHAR* pOSName ;
  24. extern const WCHAR* pOSVersion ;
  25. extern const WCHAR* pProcessor ;
  26. extern const WCHAR* pClockSpeed ;
  27. extern const WCHAR* pRAM ;
  28. extern const WCHAR* pSwapFile ;
  29. extern const WCHAR* pSystemID ;
  30. extern const WCHAR* pUptime ;
  31. extern const WCHAR* pOSLanguage;
  32. extern const WCHAR* pManufacturer;
  33. extern const WCHAR* pModel;
  34. extern const WCHAR* pOSBuildNumber;
  35. class CPCH_Sysinfo : public Provider
  36. {
  37. public:
  38. // Constructor/destructor
  39. //=======================
  40. CPCH_Sysinfo(const CHString& chsClassName, LPCWSTR lpszNameSpace) : Provider(chsClassName, lpszNameSpace) {};
  41. virtual ~CPCH_Sysinfo() {};
  42. protected:
  43. // Reading Functions
  44. //============================
  45. virtual HRESULT EnumerateInstances(MethodContext* pMethodContext, long lFlags = 0L);
  46. virtual HRESULT GetObject(CInstance* pInstance, long lFlags = 0L) { return (WBEM_E_PROVIDER_NOT_CAPABLE); };
  47. virtual HRESULT ExecQuery(MethodContext *pMethodContext, CFrameworkQuery& Query, long lFlags = 0L) { return (WBEM_E_PROVIDER_NOT_CAPABLE); };
  48. // Writing Functions
  49. //============================
  50. virtual HRESULT PutInstance(const CInstance& Instance, long lFlags = 0L) { return (WBEM_E_PROVIDER_NOT_CAPABLE); };
  51. virtual HRESULT DeleteInstance(const CInstance& Instance, long lFlags = 0L) { return (WBEM_E_PROVIDER_NOT_CAPABLE); };
  52. // Other Functions
  53. virtual HRESULT ExecMethod( const CInstance& Instance,
  54. const BSTR bstrMethodName,
  55. CInstance *pInParams,
  56. CInstance *pOutParams,
  57. long lFlags = 0L ) { return (WBEM_E_PROVIDER_NOT_CAPABLE); };
  58. } ;
  59. #endif