Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[reactos.git] / dll / win32 / ws2help / precomp.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS WinSock 2 Helper DLL
4 * FILE: lib/ws2help/precomp.h
5 * PURPOSE: WinSock 2 Helper DLL
6 */
7 #ifndef __PRECOMP_H
8 #define __PRECOMP_H
9
10 /* Winsock Provider Headers */
11 #define WIN32_NO_STATUS
12 #define _INC_WINDOWS
13 #define COM_NO_WINDOWS_H
14 #define _WIN32_WINNT 0x502
15 #define NTOS_MODE_USER
16 #define INCL_WINSOCK_API_TYPEDEFS 1
17
18 #include <stdarg.h>
19 #include <windef.h>
20 #include <winbase.h>
21 #include <winreg.h>
22 #include <winsvc.h>
23 #include <ws2spi.h>
24
25 /* NDK Headers */
26 #include <rtlfuncs.h>
27 #include <iofuncs.h>
28
29 /* Shared Winsock Helper headers */
30 #include <ws2help.h>
31 #include "wshdrv.h"
32
33 /* Missing definition */
34 #define SO_OPENTYPE 0x20
35
36 /* Global data */
37 extern HANDLE GlobalHeap;
38 extern PSECURITY_DESCRIPTOR pSDPipe;
39 extern HANDLE ghWriterEvent;
40 extern BOOL Ws2helpInitialized;
41 extern DWORD gdwSpinCount;
42 extern DWORD gHandleToIndexMask;
43
44 /* Functions */
45 DWORD
46 WINAPI
47 Ws2helpInitialize(VOID);
48
49 /* Initialization macro */
50 #define WS2HELP_PROLOG() \
51 (Ws2helpInitialized? ERROR_SUCCESS : Ws2helpInitialize())
52
53 #endif /* __WS2HELP_H */
54
55 /* EOF */