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.

71 lines
2.2 KiB

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