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.

65 lines
2.1 KiB

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