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.

93 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. dhcpbinl.h
  5. Abstract:
  6. This file defines the interface between the DHCP server service
  7. and the BINL service (used to setup and load NetPC machines).
  8. Author:
  9. Colin Watson (colinw) 28-May-1997
  10. Environment:
  11. User Mode - Win32
  12. Revision History:
  13. --*/
  14. //
  15. // Constants for communicating with BINL and common data structures
  16. //
  17. #define DHCP_STOPPED 0
  18. #define DHCP_STARTING 1
  19. #define DHCP_NOT_AUTHORIZED 2
  20. #define DHCP_AUTHORIZED 3
  21. #define DHCP_READY_TO_UNLOAD 4
  22. #define BINL_LIBRARY_NAME L"binlsvc.dll"
  23. #define BINL_STATE_ROUTINE_NAME "TellBinlState"
  24. #define BINL_READ_STATE_ROUTINE_NAME "BinlState"
  25. #define BINL_DISCOVER_CALLBACK_ROUTINE_NAME "ProcessBinlDiscoverInDhcp"
  26. #define BINL_REQUEST_CALLBACK_ROUTINE_NAME "ProcessBinlRequestInDhcp"
  27. typedef
  28. VOID
  29. (*DhcpStateChange) (
  30. int NewState
  31. );
  32. typedef
  33. BOOL
  34. (*ReturnBinlState) (
  35. VOID
  36. );
  37. typedef
  38. DWORD
  39. (*ProcessBinlDiscoverCallback) (
  40. LPDHCP_MESSAGE DhcpReceiveMessage,
  41. LPDHCP_SERVER_OPTIONS DhcpOptions
  42. );
  43. typedef
  44. DWORD
  45. (*ProcessBinlRequestCallback) (
  46. LPDHCP_MESSAGE DhcpReceiveMessage,
  47. LPDHCP_SERVER_OPTIONS DhcpOptions,
  48. PCHAR HostName,
  49. PCHAR BootFileName,
  50. DHCP_IP_ADDRESS *BootstrapServerAddress,
  51. LPOPTION *Option,
  52. PBYTE OptionEnd
  53. );
  54. DWORD
  55. ExtractOptions(
  56. LPDHCP_MESSAGE DhcpReceiveMessage,
  57. LPDHCP_SERVER_OPTIONS DhcpOptions,
  58. DWORD ReceiveMessageSize
  59. );
  60. PCHAR
  61. GetDhcpDomainName(
  62. VOID
  63. );
  64. LPOPTION
  65. FormatDhcpInformAck(
  66. IN LPDHCP_MESSAGE Request,
  67. OUT LPDHCP_MESSAGE Response,
  68. IN DHCP_IP_ADDRESS IpAddress,
  69. IN DHCP_IP_ADDRESS ServerAddress
  70. );