1 #ifndef _DHCPCAPI_H 2 #define _DHCPCAPI_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 DWORD APIENTRY DhcpLeaseIpAddress( DWORD AdapterIndex ); 9 DWORD APIENTRY DhcpQueryHWInfo( DWORD AdapterIndex, 10 PDWORD MediaType, 11 PDWORD Mtu, 12 PDWORD Speed ); 13 DWORD APIENTRY DhcpReleaseIpAddressLease( DWORD AdapterIndex ); 14 DWORD APIENTRY DhcpRenewIpAddressLease( DWORD AdapterIndex ); 15 DWORD APIENTRY DhcpStaticRefreshParams( DWORD AdapterIndex, 16 DWORD Address, 17 DWORD Netmask ); 18 DWORD APIENTRY 19 DhcpNotifyConfigChange(LPWSTR ServerName, 20 LPWSTR AdapterName, 21 BOOL NewIpAddress, 22 DWORD IpIndex, 23 DWORD IpAddress, 24 DWORD SubnetMask, 25 int DhcpAction); 26 DWORD APIENTRY DhcpRosGetAdapterInfo( DWORD AdapterIndex, 27 PBOOL DhcpEnabled, 28 PDWORD DhcpServer, 29 time_t *LeaseObtained, 30 time_t *LeaseExpires ); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif/*_DHCPCAPI_H*/ 37