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.

107 lines
2.1 KiB

  1. /******************************************************************
  2. CIPPersistedRTble.H -- WMI provider class definition
  3. Generated by Microsoft WBEM Code Generation Engine
  4. Description:
  5. *******************************************************************/
  6. // Property set identification
  7. //============================
  8. #ifndef _CIPPersistedRTble_H_
  9. #define _CIPPersistedRTble_H_
  10. #define PROVIDER_NAME_CIPPERSISTEDROUTETABLE L"Win32_IP4PersistedRouteTable"
  11. class CIPPersistedRouteTable : public Provider
  12. {
  13. private:
  14. protected:
  15. HRESULT ExecMethod (
  16. const CInstance &Instance,
  17. const BSTR bstrMethodName,
  18. CInstance *pInParams,
  19. CInstance *pOutParams,
  20. long lFlags
  21. );
  22. // Writing Functions
  23. //============================
  24. HRESULT DeleteInstance (
  25. const CInstance &Instance,
  26. long lFlags
  27. );
  28. HRESULT CIPPersistedRouteTable :: PutInstance (
  29. const CInstance &Instance,
  30. long lFlags
  31. );
  32. // Reading Functions
  33. //============================
  34. HRESULT EnumerateInstances (
  35. MethodContext *pMethodContext,
  36. long lFlags = 0L
  37. ) ;
  38. HRESULT GetObject (
  39. CInstance *pInstance,
  40. long lFlags = 0L
  41. ) ;
  42. // Declare any additional functions and accessor
  43. // functions for private data used by this class
  44. //===========================================================
  45. HRESULT CheckParameters (
  46. const CInstance &a_Instance ,
  47. CHString &a_ValueName
  48. );
  49. BOOL CIPPersistedRouteTable :: Parse (
  50. LPWSTR a_InStr ,
  51. CHString &a_Dest ,
  52. CHString &a_Mask ,
  53. CHString &a_NextHop ,
  54. long &a_Metric
  55. );
  56. void SetInheritedProperties (
  57. LPCWSTR a_dest ,
  58. LPCWSTR a_gateway ,
  59. LPCWSTR a_mask ,
  60. long a_metric ,
  61. CInstance &a_Instance
  62. ) ;
  63. public:
  64. // Constructor/destructor
  65. //=======================
  66. CIPPersistedRouteTable (
  67. LPCWSTR lpwszClassName,
  68. LPCWSTR lpwszNameSpace
  69. ) ;
  70. virtual ~CIPPersistedRouteTable () ;
  71. } ;
  72. #endif