* Sync up to trunk head (r64921).
[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
8 #ifndef __PRECOMP_H
9 #define __PRECOMP_H
10
11 /* Winsock Provider Headers */
12 #define WIN32_NO_STATUS
13 #define _INC_WINDOWS
14 #define COM_NO_WINDOWS_H
15 #define _WIN32_WINNT 0x502
16 #define NTOS_MODE_USER
17 #define INCL_WINSOCK_API_TYPEDEFS 1
18
19 #include <stdarg.h>
20
21 #include <windef.h>
22 #include <winbase.h>
23 #include <winreg.h>
24 #include <winsvc.h>
25 #include <ws2spi.h>
26
27 /* NDK Headers */
28 #include <ndk/rtlfuncs.h>
29
30 /* Missing definition */
31 #define SO_OPENTYPE 0x20
32
33 /* Global data */
34 extern HANDLE GlobalHeap;
35 extern PSECURITY_DESCRIPTOR pSDPipe;
36 extern HANDLE ghWriterEvent;
37 extern BOOL Ws2helpInitialized;
38 extern DWORD gdwSpinCount;
39 extern DWORD gHandleToIndexMask;
40
41 /* Functions */
42 DWORD
43 WINAPI
44 Ws2helpInitialize(VOID);
45
46 /* Initialization macro */
47 #define WS2HELP_PROLOG() \
48 (Ws2helpInitialized? ERROR_SUCCESS : Ws2helpInitialize())
49
50 #endif /* __PRECOMP_H */