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 GetTempPath wapi_GetTempPath
54 #define GetLogicalDriveStrings wapi_GetLogicalDriveStrings
55 #define GetDiskFreeSpaceEx wapi_GetDiskFreeSpaceEx
56 #define GetDriveType wapi_GetDriveType
57 #define LockFile wapi_LockFile
58 #define UnlockFile wapi_UnlockFile
59 #define GetVolumeInformation wapi_GetVolumeInformation
60 #define FormatMessage wapi_FormatMessage
61 #define CreateMutex wapi_CreateMutex
62 #define ReleaseMutex wapi_ReleaseMutex
63 #define OpenMutex wapi_OpenMutex
64 #define ShellExecuteEx wapi_ShellExecuteEx
65 #define CreateProcess wapi_CreateProcess
66 #define CreateProcessWithLogonW wapi_CreateProcessWithLogonW
67 #define GetCurrentProcess wapi_GetCurrentProcess
68 #define GetProcessId wapi_GetProcessId
69 #define CloseProcess wapi_CloseProcess
70 #define OpenProcess wapi_OpenProcess
71 #define GetExitCodeProcess wapi_GetExitCodeProcess
72 #define GetProcessTimes wapi_GetProcessTimes
73 #define EnumProcessModules wapi_EnumProcessModules
74 #define GetModuleBaseName wapi_GetModuleBaseName
75 #define GetModuleFileNameEx wapi_GetModuleFileNameEx
76 #define GetModuleInformation wapi_GetModuleInformation
77 #define GetProcessWorkingSetSize wapi_GetProcessWorkingSetSize
78 #define SetProcessWorkingSetSize wapi_SetProcessWorkingSetSize
79 #define TerminateProcess wapi_TerminateProcess
80 #define GetPriorityClass wapi_GetPriorityClass
81 #define SetPriorityClass wapi_SetPriorityClass
82 #define ImpersonateLoggedOnUser wapi_ImpersonateLoggedOnUser
83 #define RevertToSelf wapi_RevertToSelf
84 #define CreateSemaphore wapi_CreateSemaphore
85 #define ReleaseSemaphore wapi_ReleaseSemaphore
86 #define OpenSemaphore wapi_OpenSemaphore
87 #define WSASetLastError wapi_WSASetLastError
88 #define WSAGetLastError wapi_WSAGetLastError
89 #define WSAIoctl wapi_WSAIoctl
90 #define WSARecv wapi_WSARecv
91 #define WSASend wapi_WSASend
92 #define GetSystemInfo wapi_GetSystemInfo
93 #define GetCurrentThreadId wapi_GetCurrentThreadId
94 #define Sleep wapi_Sleep
95 #define SleepEx wapi_SleepEx
96 #define QueryPerformanceCounter wapi_QueryPerformanceCounter
97 #define QueryPerformanceFrequency wapi_QueryPerformanceFrequency
98 #define GetTickCount wapi_GetTickCount
99 #define GetFileVersionInfoSize wapi_GetFileVersionInfoSize
100 #define GetFileVersionInfo wapi_GetFileVersionInfo
101 #define VerQueryValue wapi_VerQueryValue
102 #define VerLanguageName wapi_VerLanguageName
103 #define WaitForSingleObject wapi_WaitForSingleObject
104 #define WaitForSingleObjectEx wapi_WaitForSingleObjectEx
105 #define SignalObjectAndWait wapi_SignalObjectAndWait
106 #define WaitForMultipleObjects wapi_WaitForMultipleObjects
107 #define WaitForMultipleObjectsEx wapi_WaitForMultipleObjectsEx
108 #define WaitForInputIdle wapi_WaitForInputIdle
110 #endif /* __WAPI_REMAP_H__ */