ReactOS 0.4.15-dev-7846-g8ba6c66
dhcp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DWORD getDhcpInfoForAdapter (DWORD AdapterIndex, PBOOL DhcpEnabled, PDWORD DhcpServer, time_t *LeaseObtained, time_t *LeaseExpires)
 

Function Documentation

◆ getDhcpInfoForAdapter()

DWORD getDhcpInfoForAdapter ( DWORD  AdapterIndex,
PBOOL  DhcpEnabled,
PDWORD  DhcpServer,
time_t LeaseObtained,
time_t LeaseExpires 
)

Definition at line 17 of file dhcp_reactos.c.

22{
23 DWORD Status, Version = 0;
24
26 if (Status != ERROR_SUCCESS)
27 {
28 /* We assume that the DHCP service isn't running yet */
29 *DhcpEnabled = FALSE;
30 *DhcpServer = htonl(INADDR_NONE);
31 *LeaseObtained = 0;
32 *LeaseExpires = 0;
33 return ERROR_SUCCESS;
34 }
35
36 Status = DhcpRosGetAdapterInfo(AdapterIndex, DhcpEnabled, DhcpServer,
37 LeaseObtained, LeaseExpires);
38
40
41 return Status;
42}
#define INADDR_NONE
Definition: tcp.c:42
#define ERROR_SUCCESS
Definition: deptool.c:10
DWORD APIENTRY DhcpRosGetAdapterInfo(DWORD AdapterIndex, PBOOL DhcpEnabled, PDWORD DhcpServer, time_t *LeaseObtained, time_t *LeaseExpires)
Definition: dhcpcsvc.c:300
void WINAPI DhcpCApiCleanup(void)
Definition: dhcpcsvc.c:71
DWORD APIENTRY DhcpCApiInitialize(LPDWORD Version)
Definition: dhcpcsvc.c:26
#define FALSE
Definition: types.h:117
unsigned long DWORD
Definition: ntddk_ex.h:95
Status
Definition: gdiplustypes.h:25
#define htonl(x)
Definition: module.h:214
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
Definition: wdffdo.h:469

Referenced by GetAdaptersInfo().