Source code of Windows XP (NT5)
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.

141 lines
4.8 KiB

  1. /******************************************************************
  2. SrvFuncs.h -- Properties action functions declarations (GET/SET)
  3. MODULE:
  4. DhcpProv.dll
  5. DESCRIPTION:
  6. Contains the declaration of the CDHCP_Server_Parameters class, modeling all
  7. the datastructures used to retrieve the information from the DHCP Server.
  8. Contains the declarations for the action functions associated to
  9. each manageable property from the class CDHCP_Server
  10. REVISION:
  11. 08/03/98 - created
  12. ******************************************************************/
  13. #include "Props.h" // needed for MFN_PROPERTY_ACTION_DECL definition
  14. #ifndef _SRVFN_H
  15. #define _SRVFN_H
  16. /******************************************************************
  17. SrvPrms.h -- CDHCP_Server_Parameters declaration.
  18. MODULE:
  19. DhcpProv.dll
  20. DESCRIPTION:
  21. CDHCP_Server_Parameters gathers all the data structures used for
  22. retrieving the low level information from the DHCP Server, and
  23. the methods needed to update this information
  24. REVISION:
  25. 08/03/98 - created
  26. ******************************************************************/
  27. // gathers the data structures needed for retrieving data from the DHCP Server.
  28. class CDHCP_Server_Parameters
  29. {
  30. public:
  31. LPDHCP_MIB_INFO m_pMibInfo;
  32. DWORD m_dwMajor;
  33. DWORD m_dwMinor;
  34. DWORD m_dwConfigInfoV4Flags; // specifies what info is to be set from m_pConfigInfoV4 below
  35. LPDHCP_SERVER_CONFIG_INFO_V4 m_pConfigInfoV4;
  36. CDHCP_Server_Parameters();
  37. ~CDHCP_Server_Parameters();
  38. BOOL CheckExistsConfigPtr();
  39. BOOL GetMibInfo(LPDHCP_MIB_INFO& MibInfo, BOOL fRefresh);
  40. BOOL GetVersion(DWORD &Major, DWORD& Minor, BOOL fRefresh);
  41. BOOL GetServerConfigInfoV4(LPDHCP_SERVER_CONFIG_INFO_V4& ServerConfigInfoV4, BOOL fRefresh);
  42. BOOL CommitSet(DWORD &returnCode);
  43. };
  44. // the repository defines the SET methods as the _PRMFUNCS_SET_PREFIX
  45. // concatenated with the property name
  46. #define _SRV_SET_PREFIX L"Set"
  47. // GET function for the (RO)"StartTime" property
  48. MFN_PROPERTY_ACTION_DECL(fnSrvGetStartTime);
  49. // GET function for the (RO)"TotalNoOfAcks" property
  50. MFN_PROPERTY_ACTION_DECL(fnSrvGetTotalNoOfAcks);
  51. // GET function for the (RO) "TotalNoOfDeclines" property
  52. MFN_PROPERTY_ACTION_DECL(fnSrvGetTotalNoOfDeclines);
  53. // GET function for the (RO)"TotalNoOfDiscovers" property
  54. MFN_PROPERTY_ACTION_DECL(fnSrvGetTotalNoOfDiscovers);
  55. // GET function for the (RO)"TotalNoOfNacks" property
  56. MFN_PROPERTY_ACTION_DECL(fnSrvGetTotalNoOfNacks);
  57. // GET function for the (RO)"TotalNoOfOffers" property
  58. MFN_PROPERTY_ACTION_DECL(fnSrvGetTotalNoOfOffers);
  59. // GET function for the (RO)"TotalNoOfReleases" property
  60. MFN_PROPERTY_ACTION_DECL(fnSrvGetTotalNoOfReleases);
  61. // GET function for the (RO)"TotalNoOfRequests" property
  62. MFN_PROPERTY_ACTION_DECL(fnSrvGetTotalNoOfRequests);
  63. // GET function for the (RO)"ServerVersion" property
  64. MFN_PROPERTY_ACTION_DECL(fnSrvGetServerVersion);
  65. // GET/SET functions for the (RW)"APIProtocol" property
  66. MFN_PROPERTY_ACTION_DECL(fnSrvGetAPIProtocol);
  67. MFN_PROPERTY_ACTION_DECL(fnSrvSetAPIProtocol);
  68. // GET/SET functions for the (RW)"DatabaseName" property
  69. MFN_PROPERTY_ACTION_DECL(fnSrvGetDatabaseName);
  70. MFN_PROPERTY_ACTION_DECL(fnSrvSetDatabaseName);
  71. // GET/SET functions for the (RW)"DatabasePath" property
  72. MFN_PROPERTY_ACTION_DECL(fnSrvGetDatabasePath);
  73. MFN_PROPERTY_ACTION_DECL(fnSrvSetDatabasePath);
  74. // GET/SET functions for the (RW)"BackupPath" property
  75. MFN_PROPERTY_ACTION_DECL(fnSrvGetBackupPath);
  76. MFN_PROPERTY_ACTION_DECL(fnSrvSetBackupPath);
  77. // GET/SET functions for the (RW)"BackupInterval" property
  78. MFN_PROPERTY_ACTION_DECL(fnSrvGetBackupInterval);
  79. MFN_PROPERTY_ACTION_DECL(fnSrvSetBackupInterval);
  80. // GET/SET functions for the (RW)"DatabaseLoggingFlag" property
  81. MFN_PROPERTY_ACTION_DECL(fnSrvGetDatabaseLoggingFlag);
  82. MFN_PROPERTY_ACTION_DECL(fnSrvSetDatabaseLoggingFlag);
  83. // GET/SET functions for the (RW)"RestoreFlag" property
  84. MFN_PROPERTY_ACTION_DECL(fnSrvGetRestoreFlag);
  85. MFN_PROPERTY_ACTION_DECL(fnSrvSetRestoreFlag);
  86. // GET/SET functions for the (RW)"DatabaseCleanupInterval" property
  87. MFN_PROPERTY_ACTION_DECL(fnSrvGetDatabaseCleanupInterval);
  88. MFN_PROPERTY_ACTION_DECL(fnSrvSetDatabaseCleanupInterval);
  89. // GET/SET functions for the (RW)"DebugFlag" property
  90. MFN_PROPERTY_ACTION_DECL(fnSrvGetDebugFlag);
  91. MFN_PROPERTY_ACTION_DECL(fnSrvSetDebugFlag);
  92. // GET/SET functions for the (RW)"PingRetries" property
  93. MFN_PROPERTY_ACTION_DECL(fnSrvGetPingRetries);
  94. MFN_PROPERTY_ACTION_DECL(fnSrvSetPingRetries);
  95. // GET/SET functions for the (RW)"BootFileTable" property
  96. MFN_PROPERTY_ACTION_DECL(fnSrvGetBootFileTable);
  97. MFN_PROPERTY_ACTION_DECL(fnSrvSetBootFileTable);
  98. // GET/SET functions for the (RW)"AuditLog" property
  99. MFN_PROPERTY_ACTION_DECL(fnSrvGetAuditLog);
  100. MFN_PROPERTY_ACTION_DECL(fnSrvSetAuditLog);
  101. #endif