2 * PROJECT: ReactOS Networking
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: lib/iphlpapi/dhcp_reactos.c
5 * PURPOSE: DHCP helper functions for ReactOS
6 * COPYRIGHT: Copyright 2006 Ge van Geldorp <gvg@reactos.org>
9 #include "iphlpapi_private.h"
15 DWORD APIENTRY
DhcpRosGetAdapterInfo(DWORD AdapterIndex
,
18 time_t *LeaseObtained
,
19 time_t *LeaseExpires
);
21 DWORD
getDhcpInfoForAdapter(DWORD AdapterIndex
,
24 time_t *LeaseObtained
,
27 DWORD Status
, Version
= 0;
29 Status
= DhcpCApiInitialize(&Version
);
30 if (Status
!= ERROR_SUCCESS
)
32 /* We assume that the DHCP service isn't running yet */
34 *DhcpServer
= htonl(INADDR_NONE
);
40 Status
= DhcpRosGetAdapterInfo(AdapterIndex
, DhcpEnabled
, DhcpServer
,
41 LeaseObtained
, LeaseExpires
);