Copy wininet to branch
[reactos.git] / reactos / subsys / system / dhcp / include / rosdhcp.h
1 #ifndef ROSDHCP_H
2 #define ROSDHCP_H
3
4 #include <roscfg.h>
5 #include <windows.h>
6 #include <winnt.h>
7 #include <iprtrmib.h>
8 #include <iphlpapi.h>
9 #include <winsock2.h>
10 #include <stdio.h>
11 #include <setjmp.h>
12 #include "stdint.h"
13 #include "predec.h"
14 #include "debug.h"
15 #define IFNAMSIZ MAX_INTERFACE_NAME_LEN
16 #undef interface /* wine/objbase.h -- Grrr */
17
18 #undef IGNORE
19 #undef ACCEPT
20 #undef PREFER
21 #define DHCP_DISCOVER_INTERVAL 15
22 #define DHCP_REBOOT_TIMEOUT 300
23 #define DHCP_BACKOFF_MAX 300
24 #define _PATH_DHCLIENT_PID "\\systemroot\\system32\\drivers\\etc\\dhclient.pid"
25
26 typedef void *VOIDPTR;
27
28 #define NTOS_MODE_USER
29 #include <ntos.h>
30 typedef u_int32_t uintTIME;
31 #define TIME uintTIME
32 #include "dhcpd.h"
33
34 #define INLINE inline
35 #define PROTO(x) x
36
37 typedef void (*handler_t) PROTO ((struct packet *));
38
39 typedef struct _DHCP_ADAPTER {
40 LIST_ENTRY ListEntry;
41 MIB_IFROW IfMib;
42 MIB_IPADDRROW IfAddr;
43 SOCKADDR Address;
44 struct interface_info DhclientInfo;
45 struct client_state DhclientState;
46 struct client_config DhclientConfig;
47 struct sockaddr_in ListenAddr;
48 unsigned int BindStatus;
49 char recv_buf[1];
50 } DHCP_ADAPTER, *PDHCP_ADAPTER;
51
52 #define random rand
53 #define srandom srand
54
55 #endif/*ROSDHCP_H*/