2009-07-21 09:16:26 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS WinSock 2 Helper DLL
|
2021-02-07 21:17:01 +00:00
|
|
|
* FILE: dll/win32/ws2help/precomp.h
|
2009-07-21 09:16:26 +00:00
|
|
|
* PURPOSE: WinSock 2 Helper DLL
|
|
|
|
*/
|
2014-01-26 19:57:03 +00:00
|
|
|
|
2009-07-21 09:16:26 +00:00
|
|
|
#ifndef __PRECOMP_H
|
|
|
|
#define __PRECOMP_H
|
|
|
|
|
|
|
|
/* Winsock Provider Headers */
|
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
2009-07-21 09:16:26 +00:00
|
|
|
#define _WIN32_WINNT 0x502
|
|
|
|
#define NTOS_MODE_USER
|
|
|
|
#define INCL_WINSOCK_API_TYPEDEFS 1
|
2013-01-24 23:00:42 +00:00
|
|
|
|
|
|
|
#include <stdarg.h>
|
2014-01-26 19:57:03 +00:00
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <winsvc.h>
|
2009-07-21 09:16:26 +00:00
|
|
|
#include <ws2spi.h>
|
|
|
|
|
|
|
|
/* NDK Headers */
|
2014-01-26 19:57:03 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
2009-07-21 09:16:26 +00:00
|
|
|
|
|
|
|
/* Missing definition */
|
|
|
|
#define SO_OPENTYPE 0x20
|
|
|
|
|
|
|
|
/* Global data */
|
|
|
|
extern HANDLE GlobalHeap;
|
|
|
|
extern PSECURITY_DESCRIPTOR pSDPipe;
|
|
|
|
extern HANDLE ghWriterEvent;
|
|
|
|
extern BOOL Ws2helpInitialized;
|
|
|
|
extern DWORD gdwSpinCount;
|
|
|
|
extern DWORD gHandleToIndexMask;
|
|
|
|
|
|
|
|
/* Functions */
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
Ws2helpInitialize(VOID);
|
|
|
|
|
|
|
|
/* Initialization macro */
|
|
|
|
#define WS2HELP_PROLOG() \
|
|
|
|
(Ws2helpInitialized? ERROR_SUCCESS : Ws2helpInitialize())
|
|
|
|
|
2014-01-26 19:57:03 +00:00
|
|
|
#endif /* __PRECOMP_H */
|