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.

69 lines
2.2 KiB

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