ReactOS  0.4.14-dev-1233-gf5658fd
precomp.h
Go to the documentation of this file.
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;
36 extern HANDLE ghWriterEvent;
38 extern DWORD gdwSpinCount;
40 
41 /* Functions */
42 DWORD
43 WINAPI
45 
46 /* Initialization macro */
47 #define WS2HELP_PROLOG() \
48  (Ws2helpInitialized? ERROR_SUCCESS : Ws2helpInitialize())
49 
50 #endif /* __PRECOMP_H */
DWORD gHandleToIndexMask
Definition: context.c:19
DWORD WINAPI Ws2helpInitialize(VOID)
Definition: dllmain.c:103
DWORD gdwSpinCount
Definition: context.c:18
unsigned int BOOL
Definition: ntddk_ex.h:94
HANDLE ghWriterEvent
Definition: context.c:17
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
HANDLE GlobalHeap
Definition: dllmain.c:19
PSECURITY_DESCRIPTOR pSDPipe
Definition: notify.c:16
BOOL Ws2helpInitialized
Definition: dllmain.c:15