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.

72 lines
2.4 KiB

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