prevent buffer overflow, LoadString accepts the size of the buffer in TCHARs, not...
[reactos.git] / reactos / include / rosdhcp_public.h
1 #ifndef ROSDHCP_PUBLIC_H
2 #define ROSDHCP_PUBLIC_H
3
4 enum {
5 DhcpReqLeaseIpAddress,
6 DhcpReqQueryHWInfo,
7 DhcpReqReleaseIpAddress,
8 DhcpReqRenewIpAddress,
9 DhcpReqStaticRefreshParams,
10 };
11
12 typedef struct _COMM_DHCP_REQ {
13 UINT Type;
14 DWORD AdapterIndex;
15 union {
16 struct {
17 BOOL Inserted;
18 } PnpEvent;
19 struct {
20 LPWSTR AdapterName;
21 DHCPCAPI_PARAMS_ARRAY Params;
22 } RegisterParamChange;
23 struct {
24 LPWSTR AdapterName;
25 LPWSTR RequestId;
26 } RequestParams, UndoRequestParams;
27 struct {
28 DWORD IPAddress;
29 DWORD Netmask;
30 } StaticRefreshParams;
31 } Body;
32 } COMM_DHCP_REQ;
33
34 typedef union _COMM_DHCP_REPLY {
35 DWORD Reply;
36 struct {
37 DWORD AdapterIndex;
38 DWORD MediaType;
39 DWORD Mtu;
40 DWORD Speed;
41 } QueryHWInfo;
42 } COMM_DHCP_REPLY;
43
44 #define DHCP_PIPE_NAME "\\\\.\\pipe\\dhcpclient"
45
46 #endif/*ROSDHCP_PUBLIC_H*/