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.

68 lines
2.1 KiB

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