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"
11 DWORD APIENTRY
DhcpRosGetAdapterInfo(DWORD AdapterIndex
,
14 time_t *LeaseObtained
,
15 time_t *LeaseExpires
);
17 DWORD
getDhcpInfoForAdapter(DWORD AdapterIndex
,
20 time_t *LeaseObtained
,
23 DWORD Status
, Version
= 0;
25 Status
= DhcpCApiInitialize(&Version
);
26 if (Status
!= ERROR_SUCCESS
)
28 /* We assume that the DHCP service isn't running yet */
30 *DhcpServer
= htonl(INADDR_NONE
);
36 Status
= DhcpRosGetAdapterInfo(AdapterIndex
, DhcpEnabled
, DhcpServer
,
37 LeaseObtained
, LeaseExpires
);