2 * wapi-remap.h: io-layer symbol remapping support
4 * (C) 2014 Xamarin, Inc.
7 #ifndef __WAPI_REMAP_H__
8 #define __WAPI_REMAP_H__
11 * The windows function names used by the io-layer can collide with symbols in system and 3rd party libs, esp. on osx/ios. So remap them to
15 #define GetLastError wapi_GetLastError
16 #define SetLastError wapi_SetLastError
17 #define TransmitFile wapi_TransmitFile
18 #define GetThreadContext wapi_GetThreadContext
19 #define CreateEvent wapi_CreateEvent
20 #define PulseEvent wapi_PulseEvent
21 #define ResetEvent wapi_ResetEvent
22 #define SetEvent wapi_SetEvent
23 #define OpenEvent wapi_OpenEvent
24 #define CloseHandle wapi_CloseHandle
25 #define DuplicateHandle wapi_DuplicateHandle
26 #define CreateFile wapi_CreateFile
27 #define DeleteFile wapi_DeleteFile
28 #define GetStdHandle wapi_GetStdHandle
29 #define ReadFile wapi_ReadFile
30 #define WriteFile wapi_WriteFile
31 #define FlushFileBuffers wapi_FlushFileBuffers
32 #define SetEndOfFile wapi_SetEndOfFile
33 #define SetFilePointer wapi_SetFilePointer
34 #define GetFileType wapi_GetFileType
35 #define GetFileSize wapi_GetFileSize
36 #define GetFileTime wapi_GetFileTime
37 #define SetFileTime wapi_SetFileTime
38 #define FileTimeToSystemTime wapi_FileTimeToSystemTime
39 #define FindFirstFile wapi_FindFirstFile
40 #define FindNextFile wapi_FindNextFile
41 #define FindClose wapi_FindClose
42 #define CreateDirectory wapi_CreateDirectory
43 #define RemoveDirectory wapi_RemoveDirectory
44 #define MoveFile wapi_MoveFile
45 #define CopyFile wapi_CopyFile
46 #define ReplaceFile wapi_ReplaceFile
47 #define GetFileAttributes wapi_GetFileAttributes
48 #define GetFileAttributesEx wapi_GetFileAttributesEx
49 #define SetFileAttributes wapi_SetFileAttributes
50 #define GetCurrentDirectory wapi_GetCurrentDirectory
51 #define SetCurrentDirectory wapi_SetCurrentDirectory
52 #define CreatePipe wapi_CreatePipe
53 #define GetLogicalDriveStrings wapi_GetLogicalDriveStrings
54 #define GetDiskFreeSpaceEx wapi_GetDiskFreeSpaceEx
55 #define GetDriveType wapi_GetDriveType
56 #define LockFile wapi_LockFile
57 #define UnlockFile wapi_UnlockFile
58 #define GetVolumeInformation wapi_GetVolumeInformation
59 #define FormatMessage wapi_FormatMessage
60 #define CreateMutex wapi_CreateMutex
61 #define ReleaseMutex wapi_ReleaseMutex
62 #define OpenMutex wapi_OpenMutex
63 #define ShellExecuteEx wapi_ShellExecuteEx
64 #define CreateProcess wapi_CreateProcess
65 #define CreateProcessWithLogonW wapi_CreateProcessWithLogonW
66 #define GetCurrentProcess wapi_GetCurrentProcess
67 #define GetProcessId wapi_GetProcessId
68 #define CloseProcess wapi_CloseProcess
69 #define OpenProcess wapi_OpenProcess
70 #define GetExitCodeProcess wapi_GetExitCodeProcess
71 #define GetProcessTimes wapi_GetProcessTimes
72 #define EnumProcessModules wapi_EnumProcessModules
73 #define GetModuleBaseName wapi_GetModuleBaseName
74 #define GetModuleFileNameEx wapi_GetModuleFileNameEx
75 #define GetModuleInformation wapi_GetModuleInformation
76 #define GetProcessWorkingSetSize wapi_GetProcessWorkingSetSize
77 #define SetProcessWorkingSetSize wapi_SetProcessWorkingSetSize
78 #define TerminateProcess wapi_TerminateProcess
79 #define GetPriorityClass wapi_GetPriorityClass
80 #define SetPriorityClass wapi_SetPriorityClass
81 #define ImpersonateLoggedOnUser wapi_ImpersonateLoggedOnUser
82 #define RevertToSelf wapi_RevertToSelf
83 #define CreateSemaphore wapi_CreateSemaphore
84 #define ReleaseSemaphore wapi_ReleaseSemaphore
85 #define OpenSemaphore wapi_OpenSemaphore
86 #define WSASetLastError wapi_WSASetLastError
87 #define WSAGetLastError wapi_WSAGetLastError
88 #define WSAIoctl wapi_WSAIoctl
89 #define WSARecv wapi_WSARecv
90 #define WSASend wapi_WSASend
91 #define GetSystemInfo wapi_GetSystemInfo
92 #define QueryPerformanceCounter wapi_QueryPerformanceCounter
93 #define QueryPerformanceFrequency wapi_QueryPerformanceFrequency
94 #define GetTickCount wapi_GetTickCount
95 #define GetFileVersionInfoSize wapi_GetFileVersionInfoSize
96 #define GetFileVersionInfo wapi_GetFileVersionInfo
97 #define VerQueryValue wapi_VerQueryValue
98 #define VerLanguageName wapi_VerLanguageName
99 #define WaitForSingleObject wapi_WaitForSingleObject
100 #define WaitForSingleObjectEx wapi_WaitForSingleObjectEx
101 #define SignalObjectAndWait wapi_SignalObjectAndWait
102 #define WaitForMultipleObjects wapi_WaitForMultipleObjects
103 #define WaitForMultipleObjectsEx wapi_WaitForMultipleObjectsEx
104 #define WaitForInputIdle wapi_WaitForInputIdle
105 #define GetThreadPriority wapi_GetThreadPriority
106 #define SetThreadPriority wapi_SetThreadPriority
108 #endif /* __WAPI_REMAP_H__ */