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.

113 lines
2.7 KiB

  1. /*++
  2. Copyright (C) 1998 Microsoft Corporation
  3. --*/
  4. #ifndef _DHCPMGR_H_
  5. #define _DHCPMGR_H_
  6. #define MAX_MSG_LENGTH 5120
  7. #define MAX_HELPER_NAME MAX_DLL_NAME
  8. #define MAX_NAME_LEN MAX_DLL_NAME
  9. #define MAX_ENTRY_PT_NAME MAX_DLL_NAME
  10. #if 0
  11. typedef struct _DHCPMON_ATTRIBUTES
  12. {
  13. //Major version of the server
  14. DWORD dwMajorVersion;
  15. //Minor version of the server
  16. DWORD dwMinorVersion;
  17. //NetShell attributes
  18. NETSH_ATTRIBUTES NetshAttrib;
  19. //Server IPAddress Unicode String
  20. WCHAR wszServerIpAddressUnicodeString[MAX_IP_STRING_LEN+1];
  21. //Server IPAddress ANSI String
  22. CHAR szServerIpAddressAnsiString[MAX_IP_STRING_LEN+1];
  23. //ServerNameString in UNICODE
  24. LPWSTR pwszServerUnicodeName;
  25. //Server IP Address
  26. DHCP_IP_ADDRESS ServerIpAddress;
  27. //This module's handle
  28. HANDLE hParentModule;
  29. //Handle of DHCPSAPI.DLL if loaded.
  30. HANDLE hDhcpsapiModule;
  31. }DHCPMON_ATTRIBUTES, *PDHCPMON_ATTRIBUTES;
  32. typedef
  33. DWORD
  34. (WINAPI *PDHCPMON_HELPER_INIT_FN)(
  35. IN PWCHAR pwszRouter,
  36. IN PDHCPMON_ATTRIBUTES pUtilityTable,
  37. OUT PNS_HELPER_ATTRIBUTES pHelperTable
  38. );
  39. typedef struct _DHCPMON_HELPER_TABLE_ENTRY
  40. {
  41. //
  42. // Name of the helper - this is also the name of the context
  43. // and the name of the key in the registry
  44. //
  45. WCHAR pwszHelper[MAX_NAME_LEN]; // Helper Name
  46. //
  47. // Name of the DLL servicing the context
  48. //
  49. WCHAR pwszDLLName[MAX_NAME_LEN]; // Corresponding DLL
  50. //
  51. // TRUE if loaded
  52. //
  53. BOOL bLoaded; // In memory or not
  54. //
  55. // Handle to DLL instance if loaded
  56. //
  57. HANDLE hDll; // DLL handle if loaded
  58. //
  59. // Name of the entry point for the helper
  60. //
  61. WCHAR pwszInitFnName[MAX_NAME_LEN]; // Entry Fn name
  62. //
  63. // Pointers to functions
  64. //
  65. PNS_HELPER_UNINIT_FN pfnUnInitFn;
  66. PNS_HELPER_DUMP_FN pfnDumpFn;
  67. }DHCPMON_HELPER_TABLE_ENTRY,*PDHCPMON_HELPER_TABLE_ENTRY;
  68. #endif //0
  69. typedef struct _DHCPMON_SUBCONTEXT_TABLE_ENTRY
  70. {
  71. //
  72. // Name of the context
  73. //
  74. LPWSTR pwszContext;
  75. //
  76. //Short command help
  77. DWORD dwShortCmdHlpToken;
  78. //Detail command help
  79. DWORD dwCmdHlpToken;
  80. PNS_CONTEXT_ENTRY_FN pfnEntryFn;
  81. }DHCPMON_SUBCONTEXT_TABLE_ENTRY,*PDHCPMON_SUBCONTEXT_TABLE_ENTRY;
  82. #endif //_DHCPMGR_H_