4 * Copyright 2000, 2005 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
27 #include "wine/debug.h"
28 #include "wine/gdi_driver.h"
30 #include "user_private.h"
32 static USER_DRIVER null_driver, lazy_load_driver;
34 const USER_DRIVER *USER_Driver = &lazy_load_driver;
35 static DWORD driver_load_error;
37 /* load the graphics driver */
38 static const USER_DRIVER *load_driver(void)
40 static const WCHAR displayW[] = {'D','I','S','P','L','A','Y',0};
43 HMODULE graphics_driver;
44 USER_DRIVER *driver, *prev;
46 driver = HeapAlloc( GetProcessHeap(), 0, sizeof(*driver) );
47 *driver = null_driver;
49 hdc = CreateDCW( displayW, NULL, NULL, NULL );
51 graphics_driver = __wine_get_driver_module( hdc );
54 #define GET_USER_FUNC(name) \
55 do { if ((ptr = GetProcAddress( graphics_driver, #name ))) driver->p##name = ptr; } while(0)
57 GET_USER_FUNC(ActivateKeyboardLayout);
59 GET_USER_FUNC(GetAsyncKeyState);
60 GET_USER_FUNC(GetKeyNameText);
61 GET_USER_FUNC(GetKeyboardLayout);
62 GET_USER_FUNC(GetKeyboardLayoutName);
63 GET_USER_FUNC(LoadKeyboardLayout);
64 GET_USER_FUNC(MapVirtualKeyEx);
65 GET_USER_FUNC(RegisterHotKey);
66 GET_USER_FUNC(ToUnicodeEx);
67 GET_USER_FUNC(UnloadKeyboardLayout);
68 GET_USER_FUNC(UnregisterHotKey);
69 GET_USER_FUNC(VkKeyScanEx);
70 GET_USER_FUNC(CreateCursorIcon);
71 GET_USER_FUNC(DestroyCursorIcon);
72 GET_USER_FUNC(SetCursor);
73 GET_USER_FUNC(GetCursorPos);
74 GET_USER_FUNC(SetCursorPos);
75 GET_USER_FUNC(ClipCursor);
76 GET_USER_FUNC(AcquireClipboard);
77 GET_USER_FUNC(EmptyClipboard);
78 GET_USER_FUNC(SetClipboardData);
79 GET_USER_FUNC(GetClipboardData);
80 GET_USER_FUNC(CountClipboardFormats);
81 GET_USER_FUNC(EnumClipboardFormats);
82 GET_USER_FUNC(IsClipboardFormatAvailable);
83 GET_USER_FUNC(EndClipboardUpdate);
84 GET_USER_FUNC(ChangeDisplaySettingsEx);
85 GET_USER_FUNC(EnumDisplayMonitors);
86 GET_USER_FUNC(EnumDisplaySettingsEx);
87 GET_USER_FUNC(GetMonitorInfo);
88 GET_USER_FUNC(CreateDesktopWindow);
89 GET_USER_FUNC(CreateWindow);
90 GET_USER_FUNC(DestroyWindow);
92 GET_USER_FUNC(MsgWaitForMultipleObjectsEx);
93 GET_USER_FUNC(ReleaseDC);
94 GET_USER_FUNC(ScrollDC);
95 GET_USER_FUNC(SetCapture);
96 GET_USER_FUNC(SetFocus);
97 GET_USER_FUNC(SetLayeredWindowAttributes);
98 GET_USER_FUNC(SetParent);
99 GET_USER_FUNC(SetWindowRgn);
100 GET_USER_FUNC(SetWindowIcon);
101 GET_USER_FUNC(SetWindowStyle);
102 GET_USER_FUNC(SetWindowText);
103 GET_USER_FUNC(ShowWindow);
104 GET_USER_FUNC(SysCommand);
105 GET_USER_FUNC(UpdateLayeredWindow);
106 GET_USER_FUNC(WindowMessage);
107 GET_USER_FUNC(WindowPosChanging);
108 GET_USER_FUNC(WindowPosChanged);
109 GET_USER_FUNC(SystemParametersInfo);
112 else driver_load_error = GetLastError();
114 prev = InterlockedCompareExchangePointer( (void **)&USER_Driver, driver, &lazy_load_driver );
115 if (prev != &lazy_load_driver)
117 /* another thread beat us to it */
118 HeapFree( GetProcessHeap(), 0, driver );
121 else LdrAddRefDll( 0, graphics_driver );
127 /* unload the graphics driver on process exit */
128 void USER_unload_driver(void)
131 /* make sure we don't try to call the driver after it has been detached */
132 prev = InterlockedExchangePointer( (void **)&USER_Driver, &null_driver );
133 if (prev != &lazy_load_driver && prev != &null_driver)
134 HeapFree( GetProcessHeap(), 0, prev );
138 /**********************************************************************
141 * These are fallbacks for entry points that are not implemented in the real driver.
144 static HKL CDECL nulldrv_ActivateKeyboardLayout( HKL layout, UINT flags )
149 static void CDECL nulldrv_Beep(void)
153 static SHORT CDECL nulldrv_GetAsyncKeyState( INT key )
158 static INT CDECL nulldrv_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size )
163 static HKL CDECL nulldrv_GetKeyboardLayout( DWORD thread_id )
168 static BOOL CDECL nulldrv_GetKeyboardLayoutName( LPWSTR name )
173 static HKL CDECL nulldrv_LoadKeyboardLayout( LPCWSTR name, UINT flags )
178 static UINT CDECL nulldrv_MapVirtualKeyEx( UINT code, UINT type, HKL layout )
183 static BOOL CDECL nulldrv_RegisterHotKey( HWND hwnd, UINT modifiers, UINT vk )
188 static INT CDECL nulldrv_ToUnicodeEx( UINT virt, UINT scan, const BYTE *state, LPWSTR str,
189 int size, UINT flags, HKL layout )
194 static BOOL CDECL nulldrv_UnloadKeyboardLayout( HKL layout )
199 static void CDECL nulldrv_UnregisterHotKey( HWND hwnd, UINT modifiers, UINT vk )
203 static SHORT CDECL nulldrv_VkKeyScanEx( WCHAR ch, HKL layout )
208 static void CDECL nulldrv_CreateCursorIcon( HCURSOR cursor )
212 static void CDECL nulldrv_DestroyCursorIcon( HCURSOR cursor )
216 static void CDECL nulldrv_SetCursor( HCURSOR cursor )
220 static BOOL CDECL nulldrv_GetCursorPos( LPPOINT pt )
225 static BOOL CDECL nulldrv_SetCursorPos( INT x, INT y )
230 static BOOL CDECL nulldrv_ClipCursor( LPCRECT clip )
235 static INT CDECL nulldrv_AcquireClipboard( HWND hwnd )
240 static BOOL CDECL nulldrv_CountClipboardFormats(void)
245 static void CDECL nulldrv_EmptyClipboard( BOOL keepunowned )
249 static void CDECL nulldrv_EndClipboardUpdate(void)
253 static UINT CDECL nulldrv_EnumClipboardFormats( UINT format )
258 static HANDLE CDECL nulldrv_GetClipboardData( UINT format )
263 static BOOL CDECL nulldrv_IsClipboardFormatAvailable( UINT format )
268 static BOOL CDECL nulldrv_SetClipboardData( UINT format, HANDLE handle, BOOL owner )
273 static LONG CDECL nulldrv_ChangeDisplaySettingsEx( LPCWSTR name, LPDEVMODEW mode, HWND hwnd,
274 DWORD flags, LPVOID lparam )
276 return DISP_CHANGE_FAILED;
279 static BOOL CDECL nulldrv_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp )
284 static BOOL CDECL nulldrv_EnumDisplaySettingsEx( LPCWSTR name, DWORD num, LPDEVMODEW mode, DWORD flags )
289 static BOOL CDECL nulldrv_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
294 static BOOL CDECL nulldrv_CreateDesktopWindow( HWND hwnd )
299 static BOOL CDECL nulldrv_CreateWindow( HWND hwnd )
303 /* HWND_MESSAGE windows don't need a graphics driver */
304 if (GetAncestor( hwnd, GA_PARENT ) == get_user_thread_info()->msg_window) return TRUE;
305 if (warned++) return FALSE;
307 MESSAGE( "Application tried to create a window, but no driver could be loaded.\n");
308 switch (driver_load_error)
310 case ERROR_MOD_NOT_FOUND:
311 MESSAGE( "The graphics driver is missing. Check your build!\n" );
313 case ERROR_DLL_INIT_FAILED:
314 MESSAGE( "Make sure that your X server is running and that $DISPLAY is set correctly.\n" );
317 MESSAGE( "Unknown error (%d).\n", driver_load_error );
323 static void CDECL nulldrv_DestroyWindow( HWND hwnd )
327 static void CDECL nulldrv_GetDC( HDC hdc, HWND hwnd, HWND top_win, const RECT *win_rect,
328 const RECT *top_rect, DWORD flags )
332 static DWORD CDECL nulldrv_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout,
333 DWORD mask, DWORD flags )
335 return WaitForMultipleObjectsEx( count, handles, flags & MWMO_WAITALL,
336 timeout, flags & MWMO_ALERTABLE );
339 static void CDECL nulldrv_ReleaseDC( HWND hwnd, HDC hdc )
343 static BOOL CDECL nulldrv_ScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip,
344 HRGN hrgn, LPRECT update )
349 static void CDECL nulldrv_SetCapture( HWND hwnd, UINT flags )
353 static void CDECL nulldrv_SetFocus( HWND hwnd )
357 static void CDECL nulldrv_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags )
361 static void CDECL nulldrv_SetParent( HWND hwnd, HWND parent, HWND old_parent )
365 static int CDECL nulldrv_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
370 static void CDECL nulldrv_SetWindowIcon( HWND hwnd, UINT type, HICON icon )
374 static void CDECL nulldrv_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
378 static void CDECL nulldrv_SetWindowText( HWND hwnd, LPCWSTR text )
382 static UINT CDECL nulldrv_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
387 static LRESULT CDECL nulldrv_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam )
392 static BOOL CDECL nulldrv_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO *info,
393 const RECT *window_rect )
398 static LRESULT CDECL nulldrv_WindowMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
403 static void CDECL nulldrv_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags,
404 const RECT *window_rect, const RECT *client_rect,
405 RECT *visible_rect, struct window_surface **surface )
409 static void CDECL nulldrv_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
410 const RECT *window_rect, const RECT *client_rect,
411 const RECT *visible_rect, const RECT *valid_rects,
412 struct window_surface *surface )
416 static BOOL CDECL nulldrv_SystemParametersInfo( UINT action, UINT int_param, void *ptr_param, UINT flags )
421 static USER_DRIVER null_driver =
423 /* keyboard functions */
424 nulldrv_ActivateKeyboardLayout,
426 nulldrv_GetAsyncKeyState,
427 nulldrv_GetKeyNameText,
428 nulldrv_GetKeyboardLayout,
429 nulldrv_GetKeyboardLayoutName,
430 nulldrv_LoadKeyboardLayout,
431 nulldrv_MapVirtualKeyEx,
432 nulldrv_RegisterHotKey,
434 nulldrv_UnloadKeyboardLayout,
435 nulldrv_UnregisterHotKey,
437 /* cursor/icon functions */
438 nulldrv_CreateCursorIcon,
439 nulldrv_DestroyCursorIcon,
441 nulldrv_GetCursorPos,
442 nulldrv_SetCursorPos,
444 /* clipboard functions */
445 nulldrv_AcquireClipboard,
446 nulldrv_CountClipboardFormats,
447 nulldrv_EmptyClipboard,
448 nulldrv_EndClipboardUpdate,
449 nulldrv_EnumClipboardFormats,
450 nulldrv_GetClipboardData,
451 nulldrv_IsClipboardFormatAvailable,
452 nulldrv_SetClipboardData,
454 nulldrv_ChangeDisplaySettingsEx,
455 nulldrv_EnumDisplayMonitors,
456 nulldrv_EnumDisplaySettingsEx,
457 nulldrv_GetMonitorInfo,
458 /* windowing functions */
459 nulldrv_CreateDesktopWindow,
460 nulldrv_CreateWindow,
461 nulldrv_DestroyWindow,
463 nulldrv_MsgWaitForMultipleObjectsEx,
468 nulldrv_SetLayeredWindowAttributes,
470 nulldrv_SetWindowRgn,
471 nulldrv_SetWindowIcon,
472 nulldrv_SetWindowStyle,
473 nulldrv_SetWindowText,
476 nulldrv_UpdateLayeredWindow,
477 nulldrv_WindowMessage,
478 nulldrv_WindowPosChanging,
479 nulldrv_WindowPosChanged,
480 /* system parameters */
481 nulldrv_SystemParametersInfo
485 /**********************************************************************
486 * Lazy loading user driver
488 * Initial driver used before another driver is loaded.
489 * Each entry point simply loads the real driver and chains to it.
492 static HKL CDECL loaderdrv_ActivateKeyboardLayout( HKL layout, UINT flags )
494 return load_driver()->pActivateKeyboardLayout( layout, flags );
497 static void CDECL loaderdrv_Beep(void)
499 load_driver()->pBeep();
502 static SHORT CDECL loaderdrv_GetAsyncKeyState( INT key )
504 return load_driver()->pGetAsyncKeyState( key );
507 static INT CDECL loaderdrv_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size )
509 return load_driver()->pGetKeyNameText( lparam, buffer, size );
512 static HKL CDECL loaderdrv_GetKeyboardLayout( DWORD thread_id )
514 return load_driver()->pGetKeyboardLayout( thread_id );
517 static BOOL CDECL loaderdrv_GetKeyboardLayoutName( LPWSTR name )
519 return load_driver()->pGetKeyboardLayoutName( name );
522 static HKL CDECL loaderdrv_LoadKeyboardLayout( LPCWSTR name, UINT flags )
524 return load_driver()->pLoadKeyboardLayout( name, flags );
527 static UINT CDECL loaderdrv_MapVirtualKeyEx( UINT code, UINT type, HKL layout )
529 return load_driver()->pMapVirtualKeyEx( code, type, layout );
532 static BOOL CDECL loaderdrv_RegisterHotKey( HWND hwnd, UINT modifiers, UINT vk )
534 return load_driver()->pRegisterHotKey( hwnd, modifiers, vk );
537 static INT CDECL loaderdrv_ToUnicodeEx( UINT virt, UINT scan, const BYTE *state, LPWSTR str,
538 int size, UINT flags, HKL layout )
540 return load_driver()->pToUnicodeEx( virt, scan, state, str, size, flags, layout );
543 static BOOL CDECL loaderdrv_UnloadKeyboardLayout( HKL layout )
545 return load_driver()->pUnloadKeyboardLayout( layout );
548 static void CDECL loaderdrv_UnregisterHotKey( HWND hwnd, UINT modifiers, UINT vk )
550 load_driver()->pUnregisterHotKey( hwnd, modifiers, vk );
553 static SHORT CDECL loaderdrv_VkKeyScanEx( WCHAR ch, HKL layout )
555 return load_driver()->pVkKeyScanEx( ch, layout );
558 static void CDECL loaderdrv_CreateCursorIcon( HCURSOR cursor )
560 load_driver()->pCreateCursorIcon( cursor );
563 static void CDECL loaderdrv_DestroyCursorIcon( HCURSOR cursor )
565 load_driver()->pDestroyCursorIcon( cursor );
568 static void CDECL loaderdrv_SetCursor( HCURSOR cursor )
570 load_driver()->pSetCursor( cursor );
573 static BOOL CDECL loaderdrv_GetCursorPos( LPPOINT pt )
575 return load_driver()->pGetCursorPos( pt );
578 static BOOL CDECL loaderdrv_SetCursorPos( INT x, INT y )
580 return load_driver()->pSetCursorPos( x, y );
583 static BOOL CDECL loaderdrv_ClipCursor( LPCRECT clip )
585 return load_driver()->pClipCursor( clip );
588 static INT CDECL loaderdrv_AcquireClipboard( HWND hwnd )
590 return load_driver()->pAcquireClipboard( hwnd );
593 static BOOL CDECL loaderdrv_CountClipboardFormats(void)
595 return load_driver()->pCountClipboardFormats();
598 static void CDECL loaderdrv_EmptyClipboard( BOOL keepunowned )
600 load_driver()->pEmptyClipboard( keepunowned );
603 static void CDECL loaderdrv_EndClipboardUpdate(void)
605 load_driver()->pEndClipboardUpdate();
608 static UINT CDECL loaderdrv_EnumClipboardFormats( UINT format )
610 return load_driver()->pEnumClipboardFormats( format );
613 static HANDLE CDECL loaderdrv_GetClipboardData( UINT format )
615 return load_driver()->pGetClipboardData( format );
618 static BOOL CDECL loaderdrv_IsClipboardFormatAvailable( UINT format )
620 return load_driver()->pIsClipboardFormatAvailable( format );
623 static BOOL CDECL loaderdrv_SetClipboardData( UINT format, HANDLE handle, BOOL owner )
625 return load_driver()->pSetClipboardData( format, handle, owner );
628 static LONG CDECL loaderdrv_ChangeDisplaySettingsEx( LPCWSTR name, LPDEVMODEW mode, HWND hwnd,
629 DWORD flags, LPVOID lparam )
631 return load_driver()->pChangeDisplaySettingsEx( name, mode, hwnd, flags, lparam );
634 static BOOL CDECL loaderdrv_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp )
636 return load_driver()->pEnumDisplayMonitors( hdc, rect, proc, lp );
639 static BOOL CDECL loaderdrv_EnumDisplaySettingsEx( LPCWSTR name, DWORD num, LPDEVMODEW mode, DWORD flags )
641 return load_driver()->pEnumDisplaySettingsEx( name, num, mode, flags );
644 static BOOL CDECL loaderdrv_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
646 return load_driver()->pGetMonitorInfo( handle, info );
649 static BOOL CDECL loaderdrv_CreateDesktopWindow( HWND hwnd )
651 return load_driver()->pCreateDesktopWindow( hwnd );
654 static BOOL CDECL loaderdrv_CreateWindow( HWND hwnd )
656 return load_driver()->pCreateWindow( hwnd );
659 static void CDECL loaderdrv_DestroyWindow( HWND hwnd )
661 load_driver()->pDestroyWindow( hwnd );
664 static void CDECL loaderdrv_GetDC( HDC hdc, HWND hwnd, HWND top_win, const RECT *win_rect,
665 const RECT *top_rect, DWORD flags )
667 load_driver()->pGetDC( hdc, hwnd, top_win, win_rect, top_rect, flags );
670 static DWORD CDECL loaderdrv_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout,
671 DWORD mask, DWORD flags )
673 return load_driver()->pMsgWaitForMultipleObjectsEx( count, handles, timeout, mask, flags );
676 static void CDECL loaderdrv_ReleaseDC( HWND hwnd, HDC hdc )
678 load_driver()->pReleaseDC( hwnd, hdc );
681 static BOOL CDECL loaderdrv_ScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip,
682 HRGN hrgn, LPRECT update )
684 return load_driver()->pScrollDC( hdc, dx, dy, scroll, clip, hrgn, update );
687 static void CDECL loaderdrv_SetCapture( HWND hwnd, UINT flags )
689 load_driver()->pSetCapture( hwnd, flags );
692 static void CDECL loaderdrv_SetFocus( HWND hwnd )
694 load_driver()->pSetFocus( hwnd );
697 static void CDECL loaderdrv_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags )
699 load_driver()->pSetLayeredWindowAttributes( hwnd, key, alpha, flags );
702 static void CDECL loaderdrv_SetParent( HWND hwnd, HWND parent, HWND old_parent )
704 load_driver()->pSetParent( hwnd, parent, old_parent );
707 static int CDECL loaderdrv_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
709 return load_driver()->pSetWindowRgn( hwnd, hrgn, redraw );
712 static void CDECL loaderdrv_SetWindowIcon( HWND hwnd, UINT type, HICON icon )
714 load_driver()->pSetWindowIcon( hwnd, type, icon );
717 static void CDECL loaderdrv_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
719 load_driver()->pSetWindowStyle( hwnd, offset, style );
722 static void CDECL loaderdrv_SetWindowText( HWND hwnd, LPCWSTR text )
724 load_driver()->pSetWindowText( hwnd, text );
727 static UINT CDECL loaderdrv_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
729 return load_driver()->pShowWindow( hwnd, cmd, rect, swp );
732 static LRESULT CDECL loaderdrv_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam )
734 return load_driver()->pSysCommand( hwnd, wparam, lparam );
737 static BOOL CDECL loaderdrv_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO *info,
738 const RECT *window_rect )
740 return load_driver()->pUpdateLayeredWindow( hwnd, info, window_rect );
743 static LRESULT CDECL loaderdrv_WindowMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
745 return load_driver()->pWindowMessage( hwnd, msg, wparam, lparam );
748 static void CDECL loaderdrv_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags,
749 const RECT *window_rect, const RECT *client_rect,
750 RECT *visible_rect, struct window_surface **surface )
752 load_driver()->pWindowPosChanging( hwnd, insert_after, swp_flags,
753 window_rect, client_rect, visible_rect, surface );
756 static void CDECL loaderdrv_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
757 const RECT *window_rect, const RECT *client_rect,
758 const RECT *visible_rect, const RECT *valid_rects,
759 struct window_surface *surface )
761 load_driver()->pWindowPosChanged( hwnd, insert_after, swp_flags, window_rect,
762 client_rect, visible_rect, valid_rects, surface );
765 static BOOL CDECL loaderdrv_SystemParametersInfo( UINT action, UINT int_param, void *ptr_param, UINT flags )
767 return FALSE; /* don't trigger a driver load */
770 static USER_DRIVER lazy_load_driver =
772 /* keyboard functions */
773 loaderdrv_ActivateKeyboardLayout,
775 loaderdrv_GetAsyncKeyState,
776 loaderdrv_GetKeyNameText,
777 loaderdrv_GetKeyboardLayout,
778 loaderdrv_GetKeyboardLayoutName,
779 loaderdrv_LoadKeyboardLayout,
780 loaderdrv_MapVirtualKeyEx,
781 loaderdrv_RegisterHotKey,
782 loaderdrv_ToUnicodeEx,
783 loaderdrv_UnloadKeyboardLayout,
784 loaderdrv_UnregisterHotKey,
785 loaderdrv_VkKeyScanEx,
786 /* cursor/icon functions */
787 loaderdrv_CreateCursorIcon,
788 loaderdrv_DestroyCursorIcon,
790 loaderdrv_GetCursorPos,
791 loaderdrv_SetCursorPos,
792 loaderdrv_ClipCursor,
793 /* clipboard functions */
794 loaderdrv_AcquireClipboard,
795 loaderdrv_CountClipboardFormats,
796 loaderdrv_EmptyClipboard,
797 loaderdrv_EndClipboardUpdate,
798 loaderdrv_EnumClipboardFormats,
799 loaderdrv_GetClipboardData,
800 loaderdrv_IsClipboardFormatAvailable,
801 loaderdrv_SetClipboardData,
803 loaderdrv_ChangeDisplaySettingsEx,
804 loaderdrv_EnumDisplayMonitors,
805 loaderdrv_EnumDisplaySettingsEx,
806 loaderdrv_GetMonitorInfo,
807 /* windowing functions */
808 loaderdrv_CreateDesktopWindow,
809 loaderdrv_CreateWindow,
810 loaderdrv_DestroyWindow,
812 loaderdrv_MsgWaitForMultipleObjectsEx,
815 loaderdrv_SetCapture,
817 loaderdrv_SetLayeredWindowAttributes,
819 loaderdrv_SetWindowRgn,
820 loaderdrv_SetWindowIcon,
821 loaderdrv_SetWindowStyle,
822 loaderdrv_SetWindowText,
823 loaderdrv_ShowWindow,
824 loaderdrv_SysCommand,
825 loaderdrv_UpdateLayeredWindow,
826 loaderdrv_WindowMessage,
827 loaderdrv_WindowPosChanging,
828 loaderdrv_WindowPosChanged,
829 /* system parameters */
830 loaderdrv_SystemParametersInfo