2 * Unix interface for Win32 syscalls
4 * Copyright (C) 2021 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
28 #define WIN32_NO_STATUS
31 #include "ntgdi_private.h"
32 #include "ntuser_private.h"
34 #include "wine/unixlib.h"
37 static void * const syscalls
[] =
39 NtGdiAddFontMemResourceEx
,
40 NtGdiAddFontResourceW
,
45 NtGdiCreateDIBSection
,
46 NtGdiCreateEllipticRgn
,
47 NtGdiCreateHalftonePalette
,
48 NtGdiCreateHatchBrushInternal
,
49 NtGdiCreatePaletteInternal
,
50 NtGdiCreatePatternBrushInternal
,
53 NtGdiCreateRoundRectRgn
,
54 NtGdiCreateSolidBrush
,
55 NtGdiDdDDICreateDevice
,
56 NtGdiDdDDIOpenAdapterFromHdc
,
57 NtGdiDdDDIQueryStatistics
,
58 NtGdiDdDDISetQueuedLimit
,
60 NtGdiDescribePixelFormat
,
69 NtGdiGetBitmapDimension
,
70 NtGdiGetColorAdjustment
,
76 NtGdiGetNearestPaletteIndex
,
81 NtGdiGetSystemPaletteUse
,
89 NtGdiRemoveFontMemResourceEx
,
90 NtGdiRemoveFontResourceW
,
93 NtGdiSetBitmapDimension
,
95 NtGdiSetColorAdjustment
,
100 NtGdiSetTextJustification
,
101 NtGdiSetVirtualResolution
,
103 NtGdiTransformPoints
,
104 NtUserActivateKeyboardLayout
,
105 NtUserAddClipboardFormatListener
,
106 NtUserAssociateInputContext
,
107 NtUserAttachThreadInput
,
113 NtUserCallNextHookEx
,
117 NtUserChangeClipboardChain
,
118 NtUserChangeDisplaySettings
,
120 NtUserChildWindowFromPointEx
,
122 NtUserCloseClipboard
,
124 NtUserCloseWindowStation
,
125 NtUserCopyAcceleratorTable
,
126 NtUserCountClipboardFormats
,
127 NtUserCreateAcceleratorTable
,
129 NtUserCreateDesktopEx
,
130 NtUserCreateInputContext
,
131 NtUserCreateWindowEx
,
132 NtUserCreateWindowStation
,
133 NtUserDeferWindowPosAndBand
,
135 NtUserDestroyAcceleratorTable
,
137 NtUserDestroyInputContext
,
140 NtUserDisableThreadIme
,
141 NtUserDispatchMessage
,
144 NtUserEmptyClipboard
,
145 NtUserEnableMenuItem
,
146 NtUserEnableScrollBar
,
147 NtUserEndDeferWindowPosEx
,
149 NtUserEnumDisplayDevices
,
150 NtUserEnumDisplayMonitors
,
151 NtUserEnumDisplaySettings
,
152 NtUserFindExistingCursorIcon
,
156 NtUserGetAsyncKeyState
,
158 NtUserGetCaretBlinkTime
,
160 NtUserGetClassInfoEx
,
162 NtUserGetClipboardData
,
163 NtUserGetClipboardFormatName
,
164 NtUserGetClipboardOwner
,
165 NtUserGetClipboardSequenceNumber
,
166 NtUserGetClipboardViewer
,
168 NtUserGetCursorFrameInfo
,
171 NtUserGetDisplayConfigBufferSizes
,
172 NtUserGetDoubleClickTime
,
173 NtUserGetDpiForMonitor
,
174 NtUserGetForegroundWindow
,
175 NtUserGetGUIThreadInfo
,
178 NtUserGetKeyNameText
,
180 NtUserGetKeyboardLayout
,
181 NtUserGetKeyboardLayoutList
,
182 NtUserGetKeyboardLayoutName
,
183 NtUserGetKeyboardState
,
184 NtUserGetLayeredWindowAttributes
,
185 NtUserGetMenuBarInfo
,
186 NtUserGetMenuItemRect
,
188 NtUserGetMouseMovePointsEx
,
189 NtUserGetObjectInformation
,
190 NtUserGetOpenClipboardWindow
,
191 NtUserGetPriorityClipboardFormat
,
192 NtUserGetProcessDpiAwarenessContext
,
193 NtUserGetProcessWindowStation
,
195 NtUserGetQueueStatus
,
196 NtUserGetRawInputBuffer
,
197 NtUserGetRawInputData
,
198 NtUserGetRawInputDeviceInfo
,
199 NtUserGetRawInputDeviceList
,
200 NtUserGetRegisteredRawInputDevices
,
201 NtUserGetScrollBarInfo
,
202 NtUserGetSystemDpiForProcess
,
204 NtUserGetThreadDesktop
,
205 NtUserGetTitleBarInfo
,
208 NtUserGetUpdatedClipboardFormats
,
209 NtUserGetWindowPlacement
,
210 NtUserGetWindowRgnEx
,
212 NtUserHiliteMenuItem
,
213 NtUserInitializeClientPfnArrays
,
214 NtUserInternalGetWindowIcon
,
215 NtUserInternalGetWindowText
,
216 NtUserInvalidateRect
,
218 NtUserIsClipboardFormatAvailable
,
220 NtUserLockWindowUpdate
,
221 NtUserLogicalToPerMonitorDPIPhysicalPoint
,
222 NtUserMapVirtualKeyEx
,
223 NtUserMenuItemFromPoint
,
226 NtUserMsgWaitForMultipleObjectsEx
,
227 NtUserNotifyWinEvent
,
230 NtUserOpenInputDesktop
,
231 NtUserOpenWindowStation
,
233 NtUserPerMonitorDPIPhysicalToLogicalPoint
,
235 NtUserPostThreadMessage
,
236 NtUserQueryInputContext
,
238 NtUserRegisterClassExWOW
,
239 NtUserRegisterHotKey
,
240 NtUserRegisterRawInputDevices
,
241 NtUserRemoveClipboardFormatListener
,
244 NtUserScrollWindowEx
,
246 NtUserSetActiveWindow
,
249 NtUserSetClassLongPtr
,
251 NtUserSetClipboardData
,
252 NtUserSetClipboardViewer
,
254 NtUserSetCursorIconData
,
257 NtUserSetInternalWindowPos
,
258 NtUserSetKeyboardState
,
259 NtUserSetLayeredWindowAttributes
,
261 NtUserSetMenuContextHelpId
,
262 NtUserSetMenuDefaultItem
,
263 NtUserSetObjectInformation
,
265 NtUserSetProcessDpiAwarenessContext
,
266 NtUserSetProcessWindowStation
,
271 NtUserSetSystemTimer
,
272 NtUserSetThreadDesktop
,
274 NtUserSetWinEventHook
,
276 NtUserSetWindowLongPtr
,
277 NtUserSetWindowPlacement
,
281 NtUserSetWindowsHookEx
,
286 NtUserShowWindowAsync
,
287 NtUserSystemParametersInfo
,
288 NtUserSystemParametersInfoForDpi
,
289 NtUserThunkedMenuInfo
,
290 NtUserThunkedMenuItemInfo
,
292 NtUserTrackMouseEvent
,
293 NtUserTrackPopupMenuEx
,
294 NtUserTranslateAccelerator
,
295 NtUserTranslateMessage
,
296 NtUserUnhookWinEvent
,
297 NtUserUnhookWindowsHookEx
,
298 NtUserUnregisterClass
,
299 NtUserUnregisterHotKey
,
300 NtUserUpdateInputContext
,
302 NtUserWaitForInputIdle
,
304 NtUserWindowFromPoint
,
307 static BYTE arguments
[ARRAY_SIZE(syscalls
)];
309 static SYSTEM_SERVICE_TABLE syscall_table
=
311 (ULONG_PTR
*)syscalls
,
313 ARRAY_SIZE(syscalls
),
317 static NTSTATUS
init( void *dispatcher
)
319 return ntdll_init_syscalls( 1, &syscall_table
, dispatcher
);
322 unixlib_entry_t __wine_unix_call_funcs
[] =
330 WINE_DEFAULT_DEBUG_CHANNEL(win32u
);
332 static NTSTATUS
wow64_init( void *args
)
335 return STATUS_NOT_SUPPORTED
;
338 const unixlib_entry_t __wine_unix_call_wow64_funcs
[] =