ReactOS  0.4.15-dev-2359-g0dedb9b
dhcpcsdk.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DHCPAPI_PARAMS
 
struct  _DHCPCAPI_PARAMS_ARARAY
 
struct  _DHCPCAPI_CLASSID
 

Macros

#define OPTION_PAD   0
 
#define OPTION_SUBNET_MASK   1
 
#define OPTION_TIME_OFFSET   2
 
#define OPTION_ROUTER_ADDRESS   3
 
#define OPTION_TIME_SERVERS   4
 
#define OPTION_IEN116_NAME_SERVERS   5
 
#define OPTION_DOMAIN_NAME_SERVERS   6
 
#define OPTION_LOG_SERVERS   7
 
#define OPTION_COOKIE_SERVERS   8
 
#define OPTION_LPR_SERVERS   9
 
#define OPTION_IMPRESS_SERVERS   10
 
#define OPTION_RLP_SERVERS   11
 
#define OPTION_HOST_NAME   12
 
#define OPTION_BOOT_FILE_SIZE   13
 
#define OPTION_MERIT_DUMP_FILE   14
 
#define OPTION_DOMAIN_NAME   15
 
#define OPTION_SWAP_SERVER   16
 
#define OPTION_ROOT_DISK   17
 
#define OPTION_EXTENSIONS_PATH   18
 
#define OPTION_BE_A_ROUTER   19
 
#define OPTION_NON_LOCAL_SOURCE_ROUTING   20
 
#define OPTION_POLICY_FILTER_FOR_NLSR   21
 
#define OPTION_MAX_REASSEMBLY_SIZE   22
 
#define OPTION_DEFAULT_TTL   23
 
#define OPTION_PMTU_AGING_TIMEOUT   24
 
#define OPTION_PMTU_PLATEAU_TABLE   25
 
#define OPTION_MTU   26
 
#define OPTION_ALL_SUBNETS_MTU   27
 
#define OPTION_BROADCAST_ADDRESS   28
 
#define OPTION_PERFORM_MASK_DISCOVERY   29
 
#define OPTION_BE_A_MASK_SUPPLIER   30
 
#define OPTION_PERFORM_ROUTER_DISCOVERY   31
 
#define OPTION_ROUTER_SOLICITATION_ADDR   32
 
#define OPTION_STATIC_ROUTES   33
 
#define OPTION_TRAILERS   34
 
#define OPTION_ARP_CACHE_TIMEOUT   35
 
#define OPTION_ETHERNET_ENCAPSULATION   36
 
#define OPTION_TTL   37
 
#define OPTION_KEEP_ALIVE_INTERVAL   38
 
#define OPTION_KEEP_ALIVE_DATA_SIZE   39
 
#define OPTION_NETWORK_INFO_SERVICE_DOM   40
 
#define OPTION_NETWORK_INFO_SERVERS   41
 
#define OPTION_NETWORK_TIME_SERVERS   42
 
#define OPTION_VENDOR_SPEC_INFO   43
 
#define OPTION_NETBIOS_NAME_SERVER   44
 
#define OPTION_NETBIOS_DATAGRAM_SERVER   45
 
#define OPTION_NETBIOS_NODE_TYPE   46
 
#define OPTION_NETBIOS_SCOPE_OPTION   47
 
#define OPTION_XWINDOW_FONT_SERVER   48
 
#define OPTION_XWINDOW_DISPLAY_MANAGER   49
 
#define OPTION_REQUESTED_ADDRESS   50
 
#define OPTION_LEASE_TIME   51
 
#define OPTION_OK_TO_OVERLAY   52
 
#define OPTION_MESSAGE_TYPE   53
 
#define OPTION_SERVER_IDENTIFIER   54
 
#define OPTION_PARAMETER_REQUEST_LIST   55
 
#define OPTION_MESSAGE   56
 
#define OPTION_MESSAGE_LENGTH   57
 
#define OPTION_RENEWAL_TIME   58
 
#define OPTION_REBIND_TIME   59
 
#define OPTION_CLIENT_CLASS_INFO   60
 
#define OPTION_CLIENT_ID   61
 
#define OPTION_TFTP_SERVER_NAME   66
 
#define OPTION_BOOTFILE_NAME   67
 
#define OPTION_MSFT_IE_PROXY   252
 
#define OPTION_END   255
 
#define DHCPCAPI_REQUEST_PERSISTENT   0x1
 
#define DHCPCAPI_REQUEST_SYNCHRONOUS   0x2
 
#define DHCPCAPI_REQUEST_ASYNCHRONOUS   0x4
 
#define DHCPCAPI_REQUEST_CANCEL   0x8
 
#define DHCPCAPI_REQUEST_MASK   0xf
 

Typedefs

typedef struct _DHCPAPI_PARAMS DHCPAPI_PARAMS
 
typedef struct _DHCPAPI_PARAMSPDHCPAPI_PARAMS
 
typedef struct _DHCPAPI_PARAMSLPDHCPAPI_PARAMS
 
typedef struct _DHCPAPI_PARAMS DHCPCAPI_PARAMS
 
typedef struct _DHCPAPI_PARAMSPDHCPCAPI_PARAMS
 
typedef struct _DHCPAPI_PARAMSLPDHCPCAPI_PARAMS
 
typedef struct _DHCPCAPI_PARAMS_ARARAY DHCPCAPI_PARAMS_ARRAY
 
typedef struct _DHCPCAPI_PARAMS_ARARAYPDHCPCAPI_PARAMS_ARRAY
 
typedef struct _DHCPCAPI_PARAMS_ARARAYLPDHCPCAPI_PARAMS_ARRAY
 
typedef struct _DHCPCAPI_CLASSID DHCPCAPI_CLASSID
 
typedef struct _DHCPCAPI_CLASSIDPDHCPCAPI_CLASSID
 
typedef struct _DHCPCAPI_CLASSIDLPDHCPCAPI_CLASSID
 

Functions

void WINAPI DhcpCApiCleanup (void)
 
DWORD WINAPI DhcpCApiInitialize (DWORD *)
 
DWORD WINAPI DhcpRequestParams (DWORD, void *, WCHAR *, DHCPCAPI_CLASSID *, DHCPCAPI_PARAMS_ARRAY, DHCPCAPI_PARAMS_ARRAY, BYTE *, DWORD *, WCHAR *)
 

Macro Definition Documentation

◆ DHCPCAPI_REQUEST_ASYNCHRONOUS

#define DHCPCAPI_REQUEST_ASYNCHRONOUS   0x4

Definition at line 116 of file dhcpcsdk.h.

◆ DHCPCAPI_REQUEST_CANCEL

#define DHCPCAPI_REQUEST_CANCEL   0x8

Definition at line 117 of file dhcpcsdk.h.

◆ DHCPCAPI_REQUEST_MASK

#define DHCPCAPI_REQUEST_MASK   0xf

Definition at line 118 of file dhcpcsdk.h.

◆ DHCPCAPI_REQUEST_PERSISTENT

#define DHCPCAPI_REQUEST_PERSISTENT   0x1

Definition at line 114 of file dhcpcsdk.h.

◆ DHCPCAPI_REQUEST_SYNCHRONOUS

#define DHCPCAPI_REQUEST_SYNCHRONOUS   0x2

Definition at line 115 of file dhcpcsdk.h.

◆ OPTION_ALL_SUBNETS_MTU

#define OPTION_ALL_SUBNETS_MTU   27

Definition at line 48 of file dhcpcsdk.h.

◆ OPTION_ARP_CACHE_TIMEOUT

#define OPTION_ARP_CACHE_TIMEOUT   35

Definition at line 56 of file dhcpcsdk.h.

◆ OPTION_BE_A_MASK_SUPPLIER

#define OPTION_BE_A_MASK_SUPPLIER   30

Definition at line 51 of file dhcpcsdk.h.

◆ OPTION_BE_A_ROUTER

#define OPTION_BE_A_ROUTER   19

Definition at line 40 of file dhcpcsdk.h.

◆ OPTION_BOOT_FILE_SIZE

#define OPTION_BOOT_FILE_SIZE   13

Definition at line 34 of file dhcpcsdk.h.

◆ OPTION_BOOTFILE_NAME

#define OPTION_BOOTFILE_NAME   67

Definition at line 85 of file dhcpcsdk.h.

◆ OPTION_BROADCAST_ADDRESS

#define OPTION_BROADCAST_ADDRESS   28

Definition at line 49 of file dhcpcsdk.h.

◆ OPTION_CLIENT_CLASS_INFO

#define OPTION_CLIENT_CLASS_INFO   60

Definition at line 81 of file dhcpcsdk.h.

◆ OPTION_CLIENT_ID

#define OPTION_CLIENT_ID   61

Definition at line 82 of file dhcpcsdk.h.

◆ OPTION_COOKIE_SERVERS

#define OPTION_COOKIE_SERVERS   8

Definition at line 29 of file dhcpcsdk.h.

◆ OPTION_DEFAULT_TTL

#define OPTION_DEFAULT_TTL   23

Definition at line 44 of file dhcpcsdk.h.

◆ OPTION_DOMAIN_NAME

#define OPTION_DOMAIN_NAME   15

Definition at line 36 of file dhcpcsdk.h.

◆ OPTION_DOMAIN_NAME_SERVERS

#define OPTION_DOMAIN_NAME_SERVERS   6

Definition at line 27 of file dhcpcsdk.h.

◆ OPTION_END

#define OPTION_END   255

Definition at line 88 of file dhcpcsdk.h.

◆ OPTION_ETHERNET_ENCAPSULATION

#define OPTION_ETHERNET_ENCAPSULATION   36

Definition at line 57 of file dhcpcsdk.h.

◆ OPTION_EXTENSIONS_PATH

#define OPTION_EXTENSIONS_PATH   18

Definition at line 39 of file dhcpcsdk.h.

◆ OPTION_HOST_NAME

#define OPTION_HOST_NAME   12

Definition at line 33 of file dhcpcsdk.h.

◆ OPTION_IEN116_NAME_SERVERS

#define OPTION_IEN116_NAME_SERVERS   5

Definition at line 26 of file dhcpcsdk.h.

◆ OPTION_IMPRESS_SERVERS

#define OPTION_IMPRESS_SERVERS   10

Definition at line 31 of file dhcpcsdk.h.

◆ OPTION_KEEP_ALIVE_DATA_SIZE

#define OPTION_KEEP_ALIVE_DATA_SIZE   39

Definition at line 60 of file dhcpcsdk.h.

◆ OPTION_KEEP_ALIVE_INTERVAL

#define OPTION_KEEP_ALIVE_INTERVAL   38

Definition at line 59 of file dhcpcsdk.h.

◆ OPTION_LEASE_TIME

#define OPTION_LEASE_TIME   51

Definition at line 72 of file dhcpcsdk.h.

◆ OPTION_LOG_SERVERS

#define OPTION_LOG_SERVERS   7

Definition at line 28 of file dhcpcsdk.h.

◆ OPTION_LPR_SERVERS

#define OPTION_LPR_SERVERS   9

Definition at line 30 of file dhcpcsdk.h.

◆ OPTION_MAX_REASSEMBLY_SIZE

#define OPTION_MAX_REASSEMBLY_SIZE   22

Definition at line 43 of file dhcpcsdk.h.

◆ OPTION_MERIT_DUMP_FILE

#define OPTION_MERIT_DUMP_FILE   14

Definition at line 35 of file dhcpcsdk.h.

◆ OPTION_MESSAGE

#define OPTION_MESSAGE   56

Definition at line 77 of file dhcpcsdk.h.

◆ OPTION_MESSAGE_LENGTH

#define OPTION_MESSAGE_LENGTH   57

Definition at line 78 of file dhcpcsdk.h.

◆ OPTION_MESSAGE_TYPE

#define OPTION_MESSAGE_TYPE   53

Definition at line 74 of file dhcpcsdk.h.

◆ OPTION_MSFT_IE_PROXY

#define OPTION_MSFT_IE_PROXY   252

Definition at line 87 of file dhcpcsdk.h.

◆ OPTION_MTU

#define OPTION_MTU   26

Definition at line 47 of file dhcpcsdk.h.

◆ OPTION_NETBIOS_DATAGRAM_SERVER

#define OPTION_NETBIOS_DATAGRAM_SERVER   45

Definition at line 66 of file dhcpcsdk.h.

◆ OPTION_NETBIOS_NAME_SERVER

#define OPTION_NETBIOS_NAME_SERVER   44

Definition at line 65 of file dhcpcsdk.h.

◆ OPTION_NETBIOS_NODE_TYPE

#define OPTION_NETBIOS_NODE_TYPE   46

Definition at line 67 of file dhcpcsdk.h.

◆ OPTION_NETBIOS_SCOPE_OPTION

#define OPTION_NETBIOS_SCOPE_OPTION   47

Definition at line 68 of file dhcpcsdk.h.

◆ OPTION_NETWORK_INFO_SERVERS

#define OPTION_NETWORK_INFO_SERVERS   41

Definition at line 62 of file dhcpcsdk.h.

◆ OPTION_NETWORK_INFO_SERVICE_DOM

#define OPTION_NETWORK_INFO_SERVICE_DOM   40

Definition at line 61 of file dhcpcsdk.h.

◆ OPTION_NETWORK_TIME_SERVERS

#define OPTION_NETWORK_TIME_SERVERS   42

Definition at line 63 of file dhcpcsdk.h.

◆ OPTION_NON_LOCAL_SOURCE_ROUTING

#define OPTION_NON_LOCAL_SOURCE_ROUTING   20

Definition at line 41 of file dhcpcsdk.h.

◆ OPTION_OK_TO_OVERLAY

#define OPTION_OK_TO_OVERLAY   52

Definition at line 73 of file dhcpcsdk.h.

◆ OPTION_PAD

#define OPTION_PAD   0

Definition at line 21 of file dhcpcsdk.h.

◆ OPTION_PARAMETER_REQUEST_LIST

#define OPTION_PARAMETER_REQUEST_LIST   55

Definition at line 76 of file dhcpcsdk.h.

◆ OPTION_PERFORM_MASK_DISCOVERY

#define OPTION_PERFORM_MASK_DISCOVERY   29

Definition at line 50 of file dhcpcsdk.h.

◆ OPTION_PERFORM_ROUTER_DISCOVERY

#define OPTION_PERFORM_ROUTER_DISCOVERY   31

Definition at line 52 of file dhcpcsdk.h.

◆ OPTION_PMTU_AGING_TIMEOUT

#define OPTION_PMTU_AGING_TIMEOUT   24

Definition at line 45 of file dhcpcsdk.h.

◆ OPTION_PMTU_PLATEAU_TABLE

#define OPTION_PMTU_PLATEAU_TABLE   25

Definition at line 46 of file dhcpcsdk.h.

◆ OPTION_POLICY_FILTER_FOR_NLSR

#define OPTION_POLICY_FILTER_FOR_NLSR   21

Definition at line 42 of file dhcpcsdk.h.

◆ OPTION_REBIND_TIME

#define OPTION_REBIND_TIME   59

Definition at line 80 of file dhcpcsdk.h.

◆ OPTION_RENEWAL_TIME

#define OPTION_RENEWAL_TIME   58

Definition at line 79 of file dhcpcsdk.h.

◆ OPTION_REQUESTED_ADDRESS

#define OPTION_REQUESTED_ADDRESS   50

Definition at line 71 of file dhcpcsdk.h.

◆ OPTION_RLP_SERVERS

#define OPTION_RLP_SERVERS   11

Definition at line 32 of file dhcpcsdk.h.

◆ OPTION_ROOT_DISK

#define OPTION_ROOT_DISK   17

Definition at line 38 of file dhcpcsdk.h.

◆ OPTION_ROUTER_ADDRESS

#define OPTION_ROUTER_ADDRESS   3

Definition at line 24 of file dhcpcsdk.h.

◆ OPTION_ROUTER_SOLICITATION_ADDR

#define OPTION_ROUTER_SOLICITATION_ADDR   32

Definition at line 53 of file dhcpcsdk.h.

◆ OPTION_SERVER_IDENTIFIER

#define OPTION_SERVER_IDENTIFIER   54

Definition at line 75 of file dhcpcsdk.h.

◆ OPTION_STATIC_ROUTES

#define OPTION_STATIC_ROUTES   33

Definition at line 54 of file dhcpcsdk.h.

◆ OPTION_SUBNET_MASK

#define OPTION_SUBNET_MASK   1

Definition at line 22 of file dhcpcsdk.h.

◆ OPTION_SWAP_SERVER

#define OPTION_SWAP_SERVER   16

Definition at line 37 of file dhcpcsdk.h.

◆ OPTION_TFTP_SERVER_NAME

#define OPTION_TFTP_SERVER_NAME   66

Definition at line 84 of file dhcpcsdk.h.

◆ OPTION_TIME_OFFSET

#define OPTION_TIME_OFFSET   2

Definition at line 23 of file dhcpcsdk.h.

◆ OPTION_TIME_SERVERS

#define OPTION_TIME_SERVERS   4

Definition at line 25 of file dhcpcsdk.h.

◆ OPTION_TRAILERS

#define OPTION_TRAILERS   34

Definition at line 55 of file dhcpcsdk.h.

◆ OPTION_TTL

#define OPTION_TTL   37

Definition at line 58 of file dhcpcsdk.h.

◆ OPTION_VENDOR_SPEC_INFO

#define OPTION_VENDOR_SPEC_INFO   43

Definition at line 64 of file dhcpcsdk.h.

◆ OPTION_XWINDOW_DISPLAY_MANAGER

#define OPTION_XWINDOW_DISPLAY_MANAGER   49

Definition at line 70 of file dhcpcsdk.h.

◆ OPTION_XWINDOW_FONT_SERVER

#define OPTION_XWINDOW_FONT_SERVER   48

Definition at line 69 of file dhcpcsdk.h.

Typedef Documentation

◆ DHCPAPI_PARAMS

◆ DHCPCAPI_CLASSID

◆ DHCPCAPI_PARAMS

Definition at line 99 of file dhcpcsdk.h.

◆ DHCPCAPI_PARAMS_ARRAY

◆ LPDHCPAPI_PARAMS

◆ LPDHCPCAPI_CLASSID

◆ LPDHCPCAPI_PARAMS

Definition at line 99 of file dhcpcsdk.h.

◆ LPDHCPCAPI_PARAMS_ARRAY

◆ PDHCPAPI_PARAMS

◆ PDHCPCAPI_CLASSID

◆ PDHCPCAPI_PARAMS

Definition at line 99 of file dhcpcsdk.h.

◆ PDHCPCAPI_PARAMS_ARRAY

Function Documentation

◆ DhcpCApiCleanup()

void WINAPI DhcpCApiCleanup ( void  )

Definition at line 69 of file dhcpcsvc.c.

70 {
73 }
#define CloseHandle
Definition: compat.h:598
#define INVALID_HANDLE_VALUE
Definition: compat.h:590
static HANDLE PipeHandle
Definition: dhcpcsvc.c:21

Referenced by getDhcpInfoForAdapter(), INetCfgComponentControl_fnApplyRegistryChanges(), IpReleaseAddress(), and IpRenewAddress().

◆ DhcpCApiInitialize()

DWORD WINAPI DhcpCApiInitialize ( DWORD )

◆ DhcpRequestParams()

DWORD WINAPI DhcpRequestParams ( DWORD  ,
void ,
WCHAR ,
DHCPCAPI_CLASSID ,
DHCPCAPI_PARAMS_ARRAY  ,
DHCPCAPI_PARAMS_ARRAY  ,
BYTE ,
DWORD ,
WCHAR  
)