[CLT2012]
[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 _WIN32_WINNT 0x502
13 #define NTOS_MODE_USER
14 #define INCL_WINSOCK_API_TYPEDEFS 1
15 #include <ws2spi.h>
16
17 /* NDK Headers */
18 #include <rtlfuncs.h>
19 #include <iofuncs.h>
20
21 /* Shared Winsock Helper headers */
22 #include <ws2help.h>
23 #include "wshdrv.h"
24
25 /* Missing definition */
26 #define SO_OPENTYPE 0x20
27
28 /* Global data */
29 extern HANDLE GlobalHeap;
30 extern PSECURITY_DESCRIPTOR pSDPipe;
31 extern HANDLE ghWriterEvent;
32 extern BOOL Ws2helpInitialized;
33 extern DWORD gdwSpinCount;
34 extern DWORD gHandleToIndexMask;
35
36 /* Functions */
37 DWORD
38 WINAPI
39 Ws2helpInitialize(VOID);
40
41 /* Initialization macro */
42 #define WS2HELP_PROLOG() \
43 (Ws2helpInitialized? ERROR_SUCCESS : Ws2helpInitialize())
44
45 #endif /* __WS2HELP_H */
46
47 /* EOF */