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.

52 lines
1007 B

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. vdhcpapi.h
  5. Abstract:
  6. Worker functions for VDHCP APIs.
  7. Author:
  8. Madan Appiah (madana) 28-May-1994
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #define DHCP_QUERY_INFO 1
  14. #define DHCP_RENEW_IPADDRESS 2
  15. #define DHCP_RELEASE_IPADDRESS 3
  16. typedef struct _DHCP_NIC_INFO {
  17. DWORD OffsetHardwareAddress;
  18. DWORD HardwareLength;
  19. DWORD IpAddress;
  20. DWORD Lease;
  21. DWORD LeaseObtainedTime;
  22. DWORD LeaseExpiresTime;
  23. DWORD DhcpServerAddress;
  24. DWORD DNSServersLen;
  25. DWORD OffsetDNSServers;
  26. DWORD DomainNameLen;
  27. DWORD OffsetDomainName;
  28. } DHCP_NIC_INFO, *LPDHCP_NIC_INFO;
  29. typedef struct _DHCP_HW_INFO {
  30. DWORD OffsetHardwareAddress;
  31. DWORD HardwareLength;
  32. } DHCP_HW_INFO, *LPDHCP_HW_INFO;
  33. typedef struct _DHCP_QUERYINFO {
  34. DWORD NumNICs;
  35. DHCP_NIC_INFO NicInfo[1];
  36. } DHCP_QUERYINFO, *LPDHCP_QUERYINFO;