ReactOS  0.4.14-dev-599-g2d4d3f5
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 }
IN PVOID IN PVOID IN USHORT Version
Definition: pci.h:359
#define ERROR_SUCCESS
Definition: deptool.c:10
#define htonl(x)
Definition: module.h:212
#define INADDR_NONE
Definition: tcp.c:42
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD APIENTRY DhcpCApiInitialize(LPDWORD Version)
Definition: dhcpcsvc.c:24
Status
Definition: gdiplustypes.h:24
DWORD APIENTRY DhcpRosGetAdapterInfo(DWORD AdapterIndex, PBOOL DhcpEnabled, PDWORD DhcpServer, time_t *LeaseObtained, time_t *LeaseExpires)
Definition: dhcpcsvc.c:298
VOID APIENTRY DhcpCApiCleanup(VOID)
Definition: dhcpcsvc.c:69

Referenced by GetAdaptersInfo().