reactos/base/services/dhcpcsvc/include/rosdhcp_pipe.h
Eric Kohl 2c2cdfddd3 [DHCPCSVC] Move the public header rosdhcp_public.h
This header is not to be used outside of dhcpcsvc because it contains the data structures for the communication between the client and the server part within dhcpcsvc. That is why it is moved inside of dhcpcsvc and renamed to rosdhcp_pipe.h.
2025-04-19 22:55:52 +02:00

46 lines
994 B
C

#ifndef ROSDHCP_PIPE_H
#define ROSDHCP_PIPE_H
enum {
DhcpReqLeaseIpAddress,
DhcpReqQueryHWInfo,
DhcpReqReleaseIpAddress,
DhcpReqRenewIpAddress,
DhcpReqStaticRefreshParams,
};
typedef struct _COMM_DHCP_REQ {
UINT Type;
DWORD AdapterIndex;
union {
struct {
BOOL Inserted;
} PnpEvent;
struct {
LPWSTR AdapterName;
DHCPCAPI_PARAMS_ARRAY Params;
} RegisterParamChange;
struct {
LPWSTR AdapterName;
LPWSTR RequestId;
} RequestParams, UndoRequestParams;
struct {
DWORD IPAddress;
DWORD Netmask;
} StaticRefreshParams;
} Body;
} COMM_DHCP_REQ;
typedef union _COMM_DHCP_REPLY {
DWORD Reply;
struct {
DWORD AdapterIndex;
DWORD MediaType;
DWORD Mtu;
DWORD Speed;
} QueryHWInfo;
} COMM_DHCP_REPLY;
#define DHCP_PIPE_NAME L"\\\\.\\pipe\\dhcpclient"
#endif/*ROSDHCP_PIPE_H*/