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.

66 lines
2.2 KiB

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