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.

70 lines
2.3 KiB

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