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.

55 lines
1.0 KiB

  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. #ifndef VDHCPAPI_H_
  14. #define VDHCPAPI_H_
  15. #define DHCP_QUERY_INFO 1
  16. #define DHCP_RENEW_IPADDRESS 2
  17. #define DHCP_RELEASE_IPADDRESS 3
  18. typedef struct _DHCP_NIC_INFO {
  19. DWORD OffsetHardwareAddress;
  20. DWORD HardwareLength;
  21. DWORD IpAddress;
  22. DWORD Lease;
  23. DWORD LeaseObtainedTime;
  24. DWORD LeaseExpiresTime;
  25. DWORD DhcpServerAddress;
  26. DWORD DNSServersLen;
  27. DWORD OffsetDNSServers;
  28. DWORD DomainNameLen;
  29. DWORD OffsetDomainName;
  30. } DHCP_NIC_INFO, *LPDHCP_NIC_INFO;
  31. typedef struct _DHCP_HW_INFO {
  32. DWORD OffsetHardwareAddress;
  33. DWORD HardwareLength;
  34. } DHCP_HW_INFO, *LPDHCP_HW_INFO;
  35. typedef struct _DHCP_QUERYINFO {
  36. DWORD NumNICs;
  37. DHCP_NIC_INFO NicInfo[1];
  38. } DHCP_QUERYINFO, *LPDHCP_QUERYINFO;
  39. #endif