user32/winex11.drv: Change all user32 operations to use CDECL.

This commit is contained in:
Maarten Lankhorst 2008-12-16 15:32:08 +01:00 committed by Alexandre Julliard
parent 131d0a79a1
commit 0a6459598a
12 changed files with 241 additions and 241 deletions

View File

@ -152,169 +152,169 @@ void USER_unload_driver(void)
* These are fallbacks for entry points that are not implemented in the real driver. * These are fallbacks for entry points that are not implemented in the real driver.
*/ */
static HKL nulldrv_ActivateKeyboardLayout( HKL layout, UINT flags ) static HKL CDECL nulldrv_ActivateKeyboardLayout( HKL layout, UINT flags )
{ {
return 0; return 0;
} }
static void nulldrv_Beep(void) static void CDECL nulldrv_Beep(void)
{ {
} }
static SHORT nulldrv_GetAsyncKeyState( INT key ) static SHORT CDECL nulldrv_GetAsyncKeyState( INT key )
{ {
return 0; return 0;
} }
static INT nulldrv_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size ) static INT CDECL nulldrv_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size )
{ {
return 0; return 0;
} }
static HKL nulldrv_GetKeyboardLayout( DWORD layout ) static HKL CDECL nulldrv_GetKeyboardLayout( DWORD layout )
{ {
return 0; return 0;
} }
static BOOL nulldrv_GetKeyboardLayoutName( LPWSTR name ) static BOOL CDECL nulldrv_GetKeyboardLayoutName( LPWSTR name )
{ {
return FALSE; return FALSE;
} }
static HKL nulldrv_LoadKeyboardLayout( LPCWSTR name, UINT flags ) static HKL CDECL nulldrv_LoadKeyboardLayout( LPCWSTR name, UINT flags )
{ {
return 0; return 0;
} }
static UINT nulldrv_MapVirtualKeyEx( UINT code, UINT type, HKL layout ) static UINT CDECL nulldrv_MapVirtualKeyEx( UINT code, UINT type, HKL layout )
{ {
return 0; return 0;
} }
static UINT nulldrv_SendInput( UINT count, LPINPUT inputs, int size ) static UINT CDECL nulldrv_SendInput( UINT count, LPINPUT inputs, int size )
{ {
return 0; return 0;
} }
static INT nulldrv_ToUnicodeEx( UINT virt, UINT scan, const BYTE *state, LPWSTR str, static INT CDECL nulldrv_ToUnicodeEx( UINT virt, UINT scan, const BYTE *state, LPWSTR str,
int size, UINT flags, HKL layout ) int size, UINT flags, HKL layout )
{ {
return 0; return 0;
} }
static BOOL nulldrv_UnloadKeyboardLayout( HKL layout ) static BOOL CDECL nulldrv_UnloadKeyboardLayout( HKL layout )
{ {
return 0; return 0;
} }
static SHORT nulldrv_VkKeyScanEx( WCHAR ch, HKL layout ) static SHORT CDECL nulldrv_VkKeyScanEx( WCHAR ch, HKL layout )
{ {
return -1; return -1;
} }
static void nulldrv_SetCursor( struct tagCURSORICONINFO *info ) static void CDECL nulldrv_SetCursor( struct tagCURSORICONINFO *info )
{ {
} }
static BOOL nulldrv_GetCursorPos( LPPOINT pt ) static BOOL CDECL nulldrv_GetCursorPos( LPPOINT pt )
{ {
return FALSE; return FALSE;
} }
static BOOL nulldrv_SetCursorPos( INT x, INT y ) static BOOL CDECL nulldrv_SetCursorPos( INT x, INT y )
{ {
return FALSE; return FALSE;
} }
static BOOL nulldrv_ClipCursor( LPCRECT clip ) static BOOL CDECL nulldrv_ClipCursor( LPCRECT clip )
{ {
return FALSE; return FALSE;
} }
static BOOL nulldrv_GetScreenSaveActive(void) static BOOL CDECL nulldrv_GetScreenSaveActive(void)
{ {
return FALSE; return FALSE;
} }
static void nulldrv_SetScreenSaveActive( BOOL on ) static void CDECL nulldrv_SetScreenSaveActive( BOOL on )
{ {
} }
static INT nulldrv_AcquireClipboard( HWND hwnd ) static INT CDECL nulldrv_AcquireClipboard( HWND hwnd )
{ {
return 0; return 0;
} }
static BOOL nulldrv_CountClipboardFormats(void) static BOOL CDECL nulldrv_CountClipboardFormats(void)
{ {
return 0; return 0;
} }
static void nulldrv_EmptyClipboard( BOOL keepunowned ) static void CDECL nulldrv_EmptyClipboard( BOOL keepunowned )
{ {
} }
static void nulldrv_EndClipboardUpdate(void) static void CDECL nulldrv_EndClipboardUpdate(void)
{ {
} }
static UINT nulldrv_EnumClipboardFormats( UINT format ) static UINT CDECL nulldrv_EnumClipboardFormats( UINT format )
{ {
return 0; return 0;
} }
static BOOL nulldrv_GetClipboardData( UINT format, HANDLE16 *h16, HANDLE *h32 ) static BOOL CDECL nulldrv_GetClipboardData( UINT format, HANDLE16 *h16, HANDLE *h32 )
{ {
return FALSE; return FALSE;
} }
static INT nulldrv_GetClipboardFormatName( UINT format, LPWSTR buffer, UINT len ) static INT CDECL nulldrv_GetClipboardFormatName( UINT format, LPWSTR buffer, UINT len )
{ {
return FALSE; return FALSE;
} }
static BOOL nulldrv_IsClipboardFormatAvailable( UINT format ) static BOOL CDECL nulldrv_IsClipboardFormatAvailable( UINT format )
{ {
return FALSE; return FALSE;
} }
static UINT nulldrv_RegisterClipboardFormat( LPCWSTR name ) static UINT CDECL nulldrv_RegisterClipboardFormat( LPCWSTR name )
{ {
return 0; return 0;
} }
static BOOL nulldrv_SetClipboardData( UINT format, HANDLE16 h16, HANDLE h32, BOOL owner ) static BOOL CDECL nulldrv_SetClipboardData( UINT format, HANDLE16 h16, HANDLE h32, BOOL owner )
{ {
return FALSE; return FALSE;
} }
static LONG nulldrv_ChangeDisplaySettingsEx( LPCWSTR name, LPDEVMODEW mode, HWND hwnd, static LONG CDECL nulldrv_ChangeDisplaySettingsEx( LPCWSTR name, LPDEVMODEW mode, HWND hwnd,
DWORD flags, LPVOID lparam ) DWORD flags, LPVOID lparam )
{ {
return DISP_CHANGE_FAILED; return DISP_CHANGE_FAILED;
} }
static BOOL nulldrv_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp ) static BOOL CDECL nulldrv_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp )
{ {
return FALSE; return FALSE;
} }
static BOOL nulldrv_EnumDisplaySettingsEx( LPCWSTR name, DWORD num, LPDEVMODEW mode, DWORD flags ) static BOOL CDECL nulldrv_EnumDisplaySettingsEx( LPCWSTR name, DWORD num, LPDEVMODEW mode, DWORD flags )
{ {
return FALSE; return FALSE;
} }
static BOOL nulldrv_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info ) static BOOL CDECL nulldrv_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
{ {
return FALSE; return FALSE;
} }
static BOOL nulldrv_CreateDesktopWindow( HWND hwnd ) static BOOL CDECL nulldrv_CreateDesktopWindow( HWND hwnd )
{ {
return TRUE; return TRUE;
} }
static BOOL nulldrv_CreateWindow( HWND hwnd ) static BOOL CDECL nulldrv_CreateWindow( HWND hwnd )
{ {
static int warned; static int warned;
if (warned++) if (warned++)
@ -336,89 +336,89 @@ static BOOL nulldrv_CreateWindow( HWND hwnd )
return FALSE; return FALSE;
} }
static void nulldrv_DestroyWindow( HWND hwnd ) static void CDECL nulldrv_DestroyWindow( HWND hwnd )
{ {
} }
static void nulldrv_GetDC( HDC hdc, HWND hwnd, HWND top_win, const RECT *win_rect, static void CDECL nulldrv_GetDC( HDC hdc, HWND hwnd, HWND top_win, const RECT *win_rect,
const RECT *top_rect, DWORD flags ) const RECT *top_rect, DWORD flags )
{ {
} }
static DWORD nulldrv_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout, static DWORD CDECL nulldrv_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout,
DWORD mask, DWORD flags ) DWORD mask, DWORD flags )
{ {
return WaitForMultipleObjectsEx( count, handles, flags & MWMO_WAITALL, return WaitForMultipleObjectsEx( count, handles, flags & MWMO_WAITALL,
timeout, flags & MWMO_ALERTABLE ); timeout, flags & MWMO_ALERTABLE );
} }
static void nulldrv_ReleaseDC( HWND hwnd, HDC hdc ) static void CDECL nulldrv_ReleaseDC( HWND hwnd, HDC hdc )
{ {
} }
static BOOL nulldrv_ScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip, static BOOL CDECL nulldrv_ScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip,
HRGN hrgn, LPRECT update ) HRGN hrgn, LPRECT update )
{ {
return FALSE; return FALSE;
} }
static void nulldrv_SetCapture( HWND hwnd, UINT flags ) static void CDECL nulldrv_SetCapture( HWND hwnd, UINT flags )
{ {
} }
static void nulldrv_SetFocus( HWND hwnd ) static void CDECL nulldrv_SetFocus( HWND hwnd )
{ {
} }
static void nulldrv_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags ) static void CDECL nulldrv_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags )
{ {
} }
static void nulldrv_SetParent( HWND hwnd, HWND parent, HWND old_parent ) static void CDECL nulldrv_SetParent( HWND hwnd, HWND parent, HWND old_parent )
{ {
} }
static int nulldrv_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw ) static int CDECL nulldrv_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
{ {
return 1; return 1;
} }
static void nulldrv_SetWindowIcon( HWND hwnd, UINT type, HICON icon ) static void CDECL nulldrv_SetWindowIcon( HWND hwnd, UINT type, HICON icon )
{ {
} }
static void nulldrv_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style ) static void CDECL nulldrv_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
{ {
} }
static void nulldrv_SetWindowText( HWND hwnd, LPCWSTR text ) static void CDECL nulldrv_SetWindowText( HWND hwnd, LPCWSTR text )
{ {
} }
static UINT nulldrv_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp ) static UINT CDECL nulldrv_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
{ {
return swp; return swp;
} }
static LRESULT nulldrv_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam ) static LRESULT CDECL nulldrv_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam )
{ {
return -1; return -1;
} }
static LRESULT nulldrv_WindowMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) static LRESULT CDECL nulldrv_WindowMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
{ {
return 0; return 0;
} }
static void nulldrv_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags, static void CDECL nulldrv_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags,
const RECT *window_rect, const RECT *client_rect, const RECT *window_rect, const RECT *client_rect,
RECT *visible_rect ) RECT *visible_rect )
{ {
} }
static void nulldrv_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags, static void CDECL nulldrv_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
const RECT *window_rect, const RECT *client_rect, const RECT *window_rect, const RECT *client_rect,
const RECT *visible_rect, const RECT *valid_rects ) const RECT *visible_rect, const RECT *valid_rects )
{ {
} }
@ -492,272 +492,272 @@ static USER_DRIVER null_driver =
* Each entry point simply loads the real driver and chains to it. * Each entry point simply loads the real driver and chains to it.
*/ */
static HKL loaderdrv_ActivateKeyboardLayout( HKL layout, UINT flags ) static HKL CDECL loaderdrv_ActivateKeyboardLayout( HKL layout, UINT flags )
{ {
return load_driver()->pActivateKeyboardLayout( layout, flags ); return load_driver()->pActivateKeyboardLayout( layout, flags );
} }
static void loaderdrv_Beep(void) static void CDECL loaderdrv_Beep(void)
{ {
load_driver()->pBeep(); load_driver()->pBeep();
} }
static SHORT loaderdrv_GetAsyncKeyState( INT key ) static SHORT CDECL loaderdrv_GetAsyncKeyState( INT key )
{ {
return load_driver()->pGetAsyncKeyState( key ); return load_driver()->pGetAsyncKeyState( key );
} }
static INT loaderdrv_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size ) static INT CDECL loaderdrv_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size )
{ {
return load_driver()->pGetKeyNameText( lparam, buffer, size ); return load_driver()->pGetKeyNameText( lparam, buffer, size );
} }
static HKL loaderdrv_GetKeyboardLayout( DWORD layout ) static HKL CDECL loaderdrv_GetKeyboardLayout( DWORD layout )
{ {
return load_driver()->pGetKeyboardLayout( layout ); return load_driver()->pGetKeyboardLayout( layout );
} }
static BOOL loaderdrv_GetKeyboardLayoutName( LPWSTR name ) static BOOL CDECL loaderdrv_GetKeyboardLayoutName( LPWSTR name )
{ {
return load_driver()->pGetKeyboardLayoutName( name ); return load_driver()->pGetKeyboardLayoutName( name );
} }
static HKL loaderdrv_LoadKeyboardLayout( LPCWSTR name, UINT flags ) static HKL CDECL loaderdrv_LoadKeyboardLayout( LPCWSTR name, UINT flags )
{ {
return load_driver()->pLoadKeyboardLayout( name, flags ); return load_driver()->pLoadKeyboardLayout( name, flags );
} }
static UINT loaderdrv_MapVirtualKeyEx( UINT code, UINT type, HKL layout ) static UINT CDECL loaderdrv_MapVirtualKeyEx( UINT code, UINT type, HKL layout )
{ {
return load_driver()->pMapVirtualKeyEx( code, type, layout ); return load_driver()->pMapVirtualKeyEx( code, type, layout );
} }
static UINT loaderdrv_SendInput( UINT count, LPINPUT inputs, int size ) static UINT CDECL loaderdrv_SendInput( UINT count, LPINPUT inputs, int size )
{ {
return load_driver()->pSendInput( count, inputs, size ); return load_driver()->pSendInput( count, inputs, size );
} }
static INT loaderdrv_ToUnicodeEx( UINT virt, UINT scan, const BYTE *state, LPWSTR str, static INT CDECL loaderdrv_ToUnicodeEx( UINT virt, UINT scan, const BYTE *state, LPWSTR str,
int size, UINT flags, HKL layout ) int size, UINT flags, HKL layout )
{ {
return load_driver()->pToUnicodeEx( virt, scan, state, str, size, flags, layout ); return load_driver()->pToUnicodeEx( virt, scan, state, str, size, flags, layout );
} }
static BOOL loaderdrv_UnloadKeyboardLayout( HKL layout ) static BOOL CDECL loaderdrv_UnloadKeyboardLayout( HKL layout )
{ {
return load_driver()->pUnloadKeyboardLayout( layout ); return load_driver()->pUnloadKeyboardLayout( layout );
} }
static SHORT loaderdrv_VkKeyScanEx( WCHAR ch, HKL layout ) static SHORT CDECL loaderdrv_VkKeyScanEx( WCHAR ch, HKL layout )
{ {
return load_driver()->pVkKeyScanEx( ch, layout ); return load_driver()->pVkKeyScanEx( ch, layout );
} }
static void loaderdrv_SetCursor( struct tagCURSORICONINFO *info ) static void CDECL loaderdrv_SetCursor( struct tagCURSORICONINFO *info )
{ {
load_driver()->pSetCursor( info ); load_driver()->pSetCursor( info );
} }
static BOOL loaderdrv_GetCursorPos( LPPOINT pt ) static BOOL CDECL loaderdrv_GetCursorPos( LPPOINT pt )
{ {
return load_driver()->pGetCursorPos( pt ); return load_driver()->pGetCursorPos( pt );
} }
static BOOL loaderdrv_SetCursorPos( INT x, INT y ) static BOOL CDECL loaderdrv_SetCursorPos( INT x, INT y )
{ {
return load_driver()->pSetCursorPos( x, y ); return load_driver()->pSetCursorPos( x, y );
} }
static BOOL loaderdrv_ClipCursor( LPCRECT clip ) static BOOL CDECL loaderdrv_ClipCursor( LPCRECT clip )
{ {
return load_driver()->pClipCursor( clip ); return load_driver()->pClipCursor( clip );
} }
static BOOL loaderdrv_GetScreenSaveActive(void) static BOOL CDECL loaderdrv_GetScreenSaveActive(void)
{ {
return load_driver()->pGetScreenSaveActive(); return load_driver()->pGetScreenSaveActive();
} }
static void loaderdrv_SetScreenSaveActive( BOOL on ) static void CDECL loaderdrv_SetScreenSaveActive( BOOL on )
{ {
load_driver()->pSetScreenSaveActive( on ); load_driver()->pSetScreenSaveActive( on );
} }
static INT loaderdrv_AcquireClipboard( HWND hwnd ) static INT CDECL loaderdrv_AcquireClipboard( HWND hwnd )
{ {
return load_driver()->pAcquireClipboard( hwnd ); return load_driver()->pAcquireClipboard( hwnd );
} }
static BOOL loaderdrv_CountClipboardFormats(void) static BOOL CDECL loaderdrv_CountClipboardFormats(void)
{ {
return load_driver()->pCountClipboardFormats(); return load_driver()->pCountClipboardFormats();
} }
static void loaderdrv_EmptyClipboard( BOOL keepunowned ) static void CDECL loaderdrv_EmptyClipboard( BOOL keepunowned )
{ {
load_driver()->pEmptyClipboard( keepunowned ); load_driver()->pEmptyClipboard( keepunowned );
} }
static void loaderdrv_EndClipboardUpdate(void) static void CDECL loaderdrv_EndClipboardUpdate(void)
{ {
load_driver()->pEndClipboardUpdate(); load_driver()->pEndClipboardUpdate();
} }
static UINT loaderdrv_EnumClipboardFormats( UINT format ) static UINT CDECL loaderdrv_EnumClipboardFormats( UINT format )
{ {
return load_driver()->pEnumClipboardFormats( format ); return load_driver()->pEnumClipboardFormats( format );
} }
static BOOL loaderdrv_GetClipboardData( UINT format, HANDLE16 *h16, HANDLE *h32 ) static BOOL CDECL loaderdrv_GetClipboardData( UINT format, HANDLE16 *h16, HANDLE *h32 )
{ {
return load_driver()->pGetClipboardData( format, h16, h32 ); return load_driver()->pGetClipboardData( format, h16, h32 );
} }
static INT loaderdrv_GetClipboardFormatName( UINT format, LPWSTR buffer, UINT len ) static INT CDECL loaderdrv_GetClipboardFormatName( UINT format, LPWSTR buffer, UINT len )
{ {
return load_driver()->pGetClipboardFormatName( format, buffer, len ); return load_driver()->pGetClipboardFormatName( format, buffer, len );
} }
static BOOL loaderdrv_IsClipboardFormatAvailable( UINT format ) static BOOL CDECL loaderdrv_IsClipboardFormatAvailable( UINT format )
{ {
return load_driver()->pIsClipboardFormatAvailable( format ); return load_driver()->pIsClipboardFormatAvailable( format );
} }
static UINT loaderdrv_RegisterClipboardFormat( LPCWSTR name ) static UINT CDECL loaderdrv_RegisterClipboardFormat( LPCWSTR name )
{ {
return load_driver()->pRegisterClipboardFormat( name ); return load_driver()->pRegisterClipboardFormat( name );
} }
static BOOL loaderdrv_SetClipboardData( UINT format, HANDLE16 h16, HANDLE h32, BOOL owner ) static BOOL CDECL loaderdrv_SetClipboardData( UINT format, HANDLE16 h16, HANDLE h32, BOOL owner )
{ {
return load_driver()->pSetClipboardData( format, h16, h32, owner ); return load_driver()->pSetClipboardData( format, h16, h32, owner );
} }
static LONG loaderdrv_ChangeDisplaySettingsEx( LPCWSTR name, LPDEVMODEW mode, HWND hwnd, static LONG CDECL loaderdrv_ChangeDisplaySettingsEx( LPCWSTR name, LPDEVMODEW mode, HWND hwnd,
DWORD flags, LPVOID lparam ) DWORD flags, LPVOID lparam )
{ {
return load_driver()->pChangeDisplaySettingsEx( name, mode, hwnd, flags, lparam ); return load_driver()->pChangeDisplaySettingsEx( name, mode, hwnd, flags, lparam );
} }
static BOOL loaderdrv_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp ) static BOOL CDECL loaderdrv_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp )
{ {
return load_driver()->pEnumDisplayMonitors( hdc, rect, proc, lp ); return load_driver()->pEnumDisplayMonitors( hdc, rect, proc, lp );
} }
static BOOL loaderdrv_EnumDisplaySettingsEx( LPCWSTR name, DWORD num, LPDEVMODEW mode, DWORD flags ) static BOOL CDECL loaderdrv_EnumDisplaySettingsEx( LPCWSTR name, DWORD num, LPDEVMODEW mode, DWORD flags )
{ {
return load_driver()->pEnumDisplaySettingsEx( name, num, mode, flags ); return load_driver()->pEnumDisplaySettingsEx( name, num, mode, flags );
} }
static BOOL loaderdrv_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info ) static BOOL CDECL loaderdrv_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
{ {
return load_driver()->pGetMonitorInfo( handle, info ); return load_driver()->pGetMonitorInfo( handle, info );
} }
static BOOL loaderdrv_CreateDesktopWindow( HWND hwnd ) static BOOL CDECL loaderdrv_CreateDesktopWindow( HWND hwnd )
{ {
return load_driver()->pCreateDesktopWindow( hwnd ); return load_driver()->pCreateDesktopWindow( hwnd );
} }
static BOOL loaderdrv_CreateWindow( HWND hwnd ) static BOOL CDECL loaderdrv_CreateWindow( HWND hwnd )
{ {
return load_driver()->pCreateWindow( hwnd ); return load_driver()->pCreateWindow( hwnd );
} }
static void loaderdrv_DestroyWindow( HWND hwnd ) static void CDECL loaderdrv_DestroyWindow( HWND hwnd )
{ {
load_driver()->pDestroyWindow( hwnd ); load_driver()->pDestroyWindow( hwnd );
} }
static void loaderdrv_GetDC( HDC hdc, HWND hwnd, HWND top_win, const RECT *win_rect, static void CDECL loaderdrv_GetDC( HDC hdc, HWND hwnd, HWND top_win, const RECT *win_rect,
const RECT *top_rect, DWORD flags ) const RECT *top_rect, DWORD flags )
{ {
load_driver()->pGetDC( hdc, hwnd, top_win, win_rect, top_rect, flags ); load_driver()->pGetDC( hdc, hwnd, top_win, win_rect, top_rect, flags );
} }
static DWORD loaderdrv_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout, static DWORD CDECL loaderdrv_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout,
DWORD mask, DWORD flags ) DWORD mask, DWORD flags )
{ {
return load_driver()->pMsgWaitForMultipleObjectsEx( count, handles, timeout, mask, flags ); return load_driver()->pMsgWaitForMultipleObjectsEx( count, handles, timeout, mask, flags );
} }
static void loaderdrv_ReleaseDC( HWND hwnd, HDC hdc ) static void CDECL loaderdrv_ReleaseDC( HWND hwnd, HDC hdc )
{ {
load_driver()->pReleaseDC( hwnd, hdc ); load_driver()->pReleaseDC( hwnd, hdc );
} }
static BOOL loaderdrv_ScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip, static BOOL CDECL loaderdrv_ScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip,
HRGN hrgn, LPRECT update ) HRGN hrgn, LPRECT update )
{ {
return load_driver()->pScrollDC( hdc, dx, dy, scroll, clip, hrgn, update ); return load_driver()->pScrollDC( hdc, dx, dy, scroll, clip, hrgn, update );
} }
static void loaderdrv_SetCapture( HWND hwnd, UINT flags ) static void CDECL loaderdrv_SetCapture( HWND hwnd, UINT flags )
{ {
load_driver()->pSetCapture( hwnd, flags ); load_driver()->pSetCapture( hwnd, flags );
} }
static void loaderdrv_SetFocus( HWND hwnd ) static void CDECL loaderdrv_SetFocus( HWND hwnd )
{ {
load_driver()->pSetFocus( hwnd ); load_driver()->pSetFocus( hwnd );
} }
static void loaderdrv_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags ) static void CDECL loaderdrv_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags )
{ {
load_driver()->pSetLayeredWindowAttributes( hwnd, key, alpha, flags ); load_driver()->pSetLayeredWindowAttributes( hwnd, key, alpha, flags );
} }
static void loaderdrv_SetParent( HWND hwnd, HWND parent, HWND old_parent ) static void CDECL loaderdrv_SetParent( HWND hwnd, HWND parent, HWND old_parent )
{ {
load_driver()->pSetParent( hwnd, parent, old_parent ); load_driver()->pSetParent( hwnd, parent, old_parent );
} }
static int loaderdrv_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw ) static int CDECL loaderdrv_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
{ {
return load_driver()->pSetWindowRgn( hwnd, hrgn, redraw ); return load_driver()->pSetWindowRgn( hwnd, hrgn, redraw );
} }
static void loaderdrv_SetWindowIcon( HWND hwnd, UINT type, HICON icon ) static void CDECL loaderdrv_SetWindowIcon( HWND hwnd, UINT type, HICON icon )
{ {
load_driver()->pSetWindowIcon( hwnd, type, icon ); load_driver()->pSetWindowIcon( hwnd, type, icon );
} }
static void loaderdrv_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style ) static void CDECL loaderdrv_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
{ {
load_driver()->pSetWindowStyle( hwnd, offset, style ); load_driver()->pSetWindowStyle( hwnd, offset, style );
} }
static void loaderdrv_SetWindowText( HWND hwnd, LPCWSTR text ) static void CDECL loaderdrv_SetWindowText( HWND hwnd, LPCWSTR text )
{ {
load_driver()->pSetWindowText( hwnd, text ); load_driver()->pSetWindowText( hwnd, text );
} }
static UINT loaderdrv_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp ) static UINT CDECL loaderdrv_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
{ {
return load_driver()->pShowWindow( hwnd, cmd, rect, swp ); return load_driver()->pShowWindow( hwnd, cmd, rect, swp );
} }
static LRESULT loaderdrv_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam ) static LRESULT CDECL loaderdrv_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam )
{ {
return load_driver()->pSysCommand( hwnd, wparam, lparam ); return load_driver()->pSysCommand( hwnd, wparam, lparam );
} }
static LRESULT loaderdrv_WindowMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) static LRESULT CDECL loaderdrv_WindowMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
{ {
return load_driver()->pWindowMessage( hwnd, msg, wparam, lparam ); return load_driver()->pWindowMessage( hwnd, msg, wparam, lparam );
} }
static void loaderdrv_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags, static void CDECL loaderdrv_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags,
const RECT *window_rect, const RECT *client_rect, const RECT *window_rect, const RECT *client_rect,
RECT *visible_rect ) RECT *visible_rect )
{ {
load_driver()->pWindowPosChanging( hwnd, insert_after, swp_flags, load_driver()->pWindowPosChanging( hwnd, insert_after, swp_flags,
window_rect, client_rect, visible_rect ); window_rect, client_rect, visible_rect );
} }
static void loaderdrv_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags, static void CDECL loaderdrv_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
const RECT *window_rect, const RECT *client_rect, const RECT *window_rect, const RECT *client_rect,
const RECT *visible_rect, const RECT *valid_rects ) const RECT *visible_rect, const RECT *valid_rects )
{ {
load_driver()->pWindowPosChanged( hwnd, insert_after, swp_flags, window_rect, load_driver()->pWindowPosChanged( hwnd, insert_after, swp_flags, window_rect,
client_rect, visible_rect, valid_rects ); client_rect, visible_rect, valid_rects );

View File

@ -104,63 +104,63 @@ struct tagCURSORICONINFO;
typedef struct tagUSER_DRIVER { typedef struct tagUSER_DRIVER {
/* keyboard functions */ /* keyboard functions */
HKL (*pActivateKeyboardLayout)(HKL, UINT); HKL (CDECL *pActivateKeyboardLayout)(HKL, UINT);
void (*pBeep)(void); void (CDECL *pBeep)(void);
SHORT (*pGetAsyncKeyState)(INT); SHORT (CDECL *pGetAsyncKeyState)(INT);
INT (*pGetKeyNameText)(LONG, LPWSTR, INT); INT (CDECL *pGetKeyNameText)(LONG, LPWSTR, INT);
HKL (*pGetKeyboardLayout)(DWORD); HKL (CDECL *pGetKeyboardLayout)(DWORD);
BOOL (*pGetKeyboardLayoutName)(LPWSTR); BOOL (CDECL *pGetKeyboardLayoutName)(LPWSTR);
HKL (*pLoadKeyboardLayout)(LPCWSTR, UINT); HKL (CDECL *pLoadKeyboardLayout)(LPCWSTR, UINT);
UINT (*pMapVirtualKeyEx)(UINT, UINT, HKL); UINT (CDECL *pMapVirtualKeyEx)(UINT, UINT, HKL);
UINT (*pSendInput)(UINT, LPINPUT, int); UINT (CDECL *pSendInput)(UINT, LPINPUT, int);
INT (*pToUnicodeEx)(UINT, UINT, const BYTE *, LPWSTR, int, UINT, HKL); INT (CDECL *pToUnicodeEx)(UINT, UINT, const BYTE *, LPWSTR, int, UINT, HKL);
BOOL (*pUnloadKeyboardLayout)(HKL); BOOL (CDECL *pUnloadKeyboardLayout)(HKL);
SHORT (*pVkKeyScanEx)(WCHAR, HKL); SHORT (CDECL *pVkKeyScanEx)(WCHAR, HKL);
/* mouse functions */ /* mouse functions */
void (*pSetCursor)(struct tagCURSORICONINFO *); void (CDECL *pSetCursor)(struct tagCURSORICONINFO *);
BOOL (*pGetCursorPos)(LPPOINT); BOOL (CDECL *pGetCursorPos)(LPPOINT);
BOOL (*pSetCursorPos)(INT,INT); BOOL (CDECL *pSetCursorPos)(INT,INT);
BOOL (*pClipCursor)(LPCRECT); BOOL (CDECL *pClipCursor)(LPCRECT);
/* screen saver functions */ /* screen saver functions */
BOOL (*pGetScreenSaveActive)(void); BOOL (CDECL *pGetScreenSaveActive)(void);
void (*pSetScreenSaveActive)(BOOL); void (CDECL *pSetScreenSaveActive)(BOOL);
/* clipboard functions */ /* clipboard functions */
INT (*pAcquireClipboard)(HWND); /* Acquire selection */ INT (CDECL *pAcquireClipboard)(HWND); /* Acquire selection */
BOOL (*pCountClipboardFormats)(void); /* Count available clipboard formats */ BOOL (CDECL *pCountClipboardFormats)(void); /* Count available clipboard formats */
void (*pEmptyClipboard)(BOOL); /* Empty clipboard data */ void (CDECL *pEmptyClipboard)(BOOL); /* Empty clipboard data */
void (*pEndClipboardUpdate)(void); /* End clipboard update */ void (CDECL *pEndClipboardUpdate)(void); /* End clipboard update */
UINT (*pEnumClipboardFormats)(UINT); /* Enumerate clipboard formats */ UINT (CDECL *pEnumClipboardFormats)(UINT); /* Enumerate clipboard formats */
BOOL (*pGetClipboardData)(UINT, HANDLE16*, HANDLE*); /* Get specified selection data */ BOOL (CDECL *pGetClipboardData)(UINT, HANDLE16*, HANDLE*); /* Get specified selection data */
INT (*pGetClipboardFormatName)(UINT, LPWSTR, UINT); /* Get a clipboard format name */ INT (CDECL *pGetClipboardFormatName)(UINT, LPWSTR, UINT); /* Get a clipboard format name */
BOOL (*pIsClipboardFormatAvailable)(UINT); /* Check if specified format is available */ BOOL (CDECL *pIsClipboardFormatAvailable)(UINT); /* Check if specified format is available */
UINT (*pRegisterClipboardFormat)(LPCWSTR); /* Register a clipboard format */ UINT (CDECL *pRegisterClipboardFormat)(LPCWSTR); /* Register a clipboard format */
BOOL (*pSetClipboardData)(UINT, HANDLE16, HANDLE, BOOL); /* Set specified selection data */ BOOL (CDECL *pSetClipboardData)(UINT, HANDLE16, HANDLE, BOOL); /* Set specified selection data */
/* display modes */ /* display modes */
LONG (*pChangeDisplaySettingsEx)(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID); LONG (CDECL *pChangeDisplaySettingsEx)(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
BOOL (*pEnumDisplayMonitors)(HDC,LPRECT,MONITORENUMPROC,LPARAM); BOOL (CDECL *pEnumDisplayMonitors)(HDC,LPRECT,MONITORENUMPROC,LPARAM);
BOOL (*pEnumDisplaySettingsEx)(LPCWSTR,DWORD,LPDEVMODEW,DWORD); BOOL (CDECL *pEnumDisplaySettingsEx)(LPCWSTR,DWORD,LPDEVMODEW,DWORD);
BOOL (*pGetMonitorInfo)(HMONITOR,MONITORINFO*); BOOL (CDECL *pGetMonitorInfo)(HMONITOR,MONITORINFO*);
/* windowing functions */ /* windowing functions */
BOOL (*pCreateDesktopWindow)(HWND); BOOL (CDECL *pCreateDesktopWindow)(HWND);
BOOL (*pCreateWindow)(HWND); BOOL (CDECL *pCreateWindow)(HWND);
void (*pDestroyWindow)(HWND); void (CDECL *pDestroyWindow)(HWND);
void (*pGetDC)(HDC,HWND,HWND,const RECT *,const RECT *,DWORD); void (CDECL *pGetDC)(HDC,HWND,HWND,const RECT *,const RECT *,DWORD);
DWORD (*pMsgWaitForMultipleObjectsEx)(DWORD,const HANDLE*,DWORD,DWORD,DWORD); DWORD (CDECL *pMsgWaitForMultipleObjectsEx)(DWORD,const HANDLE*,DWORD,DWORD,DWORD);
void (*pReleaseDC)(HWND,HDC); void (CDECL *pReleaseDC)(HWND,HDC);
BOOL (*pScrollDC)(HDC, INT, INT, const RECT *, const RECT *, HRGN, LPRECT); BOOL (CDECL *pScrollDC)(HDC, INT, INT, const RECT *, const RECT *, HRGN, LPRECT);
void (*pSetCapture)(HWND,UINT); void (CDECL *pSetCapture)(HWND,UINT);
void (*pSetFocus)(HWND); void (CDECL *pSetFocus)(HWND);
void (*pSetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD); void (CDECL *pSetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD);
void (*pSetParent)(HWND,HWND,HWND); void (CDECL *pSetParent)(HWND,HWND,HWND);
int (*pSetWindowRgn)(HWND,HRGN,BOOL); int (CDECL *pSetWindowRgn)(HWND,HRGN,BOOL);
void (*pSetWindowIcon)(HWND,UINT,HICON); void (CDECL *pSetWindowIcon)(HWND,UINT,HICON);
void (*pSetWindowStyle)(HWND,INT,STYLESTRUCT*); void (CDECL *pSetWindowStyle)(HWND,INT,STYLESTRUCT*);
void (*pSetWindowText)(HWND,LPCWSTR); void (CDECL *pSetWindowText)(HWND,LPCWSTR);
UINT (*pShowWindow)(HWND,INT,RECT*,UINT); UINT (CDECL *pShowWindow)(HWND,INT,RECT*,UINT);
LRESULT (*pSysCommand)(HWND,WPARAM,LPARAM); LRESULT (CDECL *pSysCommand)(HWND,WPARAM,LPARAM);
LRESULT (*pWindowMessage)(HWND,UINT,WPARAM,LPARAM); LRESULT (CDECL *pWindowMessage)(HWND,UINT,WPARAM,LPARAM);
void (*pWindowPosChanging)(HWND,HWND,UINT,const RECT *,const RECT *,RECT *); void (CDECL *pWindowPosChanging)(HWND,HWND,UINT,const RECT *,const RECT *,RECT *);
void (*pWindowPosChanged)(HWND,HWND,UINT,const RECT *,const RECT *,const RECT *,const RECT *); void (CDECL *pWindowPosChanged)(HWND,HWND,UINT,const RECT *,const RECT *,const RECT *,const RECT *);
} USER_DRIVER; } USER_DRIVER;
extern const USER_DRIVER *USER_Driver DECLSPEC_HIDDEN; extern const USER_DRIVER *USER_Driver DECLSPEC_HIDDEN;

View File

@ -145,8 +145,8 @@ static int selectionAcquired = 0; /* Contains the current selection
static Window selectionWindow = None; /* The top level X window which owns the selection */ static Window selectionWindow = None; /* The top level X window which owns the selection */
static Atom selectionCacheSrc = XA_PRIMARY; /* The selection source from which the clipboard cache was filled */ static Atom selectionCacheSrc = XA_PRIMARY; /* The selection source from which the clipboard cache was filled */
void X11DRV_EmptyClipboard(BOOL keepunowned); void CDECL X11DRV_EmptyClipboard(BOOL keepunowned);
void X11DRV_EndClipboardUpdate(void); void CDECL X11DRV_EndClipboardUpdate(void);
static HANDLE X11DRV_CLIPBOARD_ImportClipboardData(Display *d, Window w, Atom prop); static HANDLE X11DRV_CLIPBOARD_ImportClipboardData(Display *d, Window w, Atom prop);
static HANDLE X11DRV_CLIPBOARD_ImportEnhMetaFile(Display *d, Window w, Atom prop); static HANDLE X11DRV_CLIPBOARD_ImportEnhMetaFile(Display *d, Window w, Atom prop);
static HANDLE X11DRV_CLIPBOARD_ImportMetaFilePict(Display *d, Window w, Atom prop); static HANDLE X11DRV_CLIPBOARD_ImportMetaFilePict(Display *d, Window w, Atom prop);
@ -2330,7 +2330,7 @@ static BOOL X11DRV_CLIPBOARD_IsSelectionOwner(void)
* Registers a custom X clipboard format * Registers a custom X clipboard format
* Returns: Format id or 0 on failure * Returns: Format id or 0 on failure
*/ */
UINT X11DRV_RegisterClipboardFormat(LPCWSTR FormatName) UINT CDECL X11DRV_RegisterClipboardFormat(LPCWSTR FormatName)
{ {
LPWINE_CLIPFORMAT lpFormat; LPWINE_CLIPFORMAT lpFormat;
@ -2343,7 +2343,7 @@ UINT X11DRV_RegisterClipboardFormat(LPCWSTR FormatName)
/************************************************************************** /**************************************************************************
* X11DRV_GetClipboardFormatName * X11DRV_GetClipboardFormatName
*/ */
INT X11DRV_GetClipboardFormatName(UINT wFormat, LPWSTR retStr, INT maxlen) INT CDECL X11DRV_GetClipboardFormatName(UINT wFormat, LPWSTR retStr, INT maxlen)
{ {
LPWINE_CLIPFORMAT lpFormat; LPWINE_CLIPFORMAT lpFormat;
@ -2373,7 +2373,7 @@ INT X11DRV_GetClipboardFormatName(UINT wFormat, LPWSTR retStr, INT maxlen)
/************************************************************************** /**************************************************************************
* AcquireClipboard (X11DRV.@) * AcquireClipboard (X11DRV.@)
*/ */
int X11DRV_AcquireClipboard(HWND hWndClipWindow) int CDECL X11DRV_AcquireClipboard(HWND hWndClipWindow)
{ {
DWORD procid; DWORD procid;
Window owner; Window owner;
@ -2443,7 +2443,7 @@ int X11DRV_AcquireClipboard(HWND hWndClipWindow)
* *
* Empty cached clipboard data. * Empty cached clipboard data.
*/ */
void X11DRV_EmptyClipboard(BOOL keepunowned) void CDECL X11DRV_EmptyClipboard(BOOL keepunowned)
{ {
if (ClipData) if (ClipData)
{ {
@ -2482,7 +2482,7 @@ void X11DRV_EmptyClipboard(BOOL keepunowned)
/************************************************************************** /**************************************************************************
* X11DRV_SetClipboardData * X11DRV_SetClipboardData
*/ */
BOOL X11DRV_SetClipboardData(UINT wFormat, HANDLE16 hData16, HANDLE hData32, BOOL owner) BOOL CDECL X11DRV_SetClipboardData(UINT wFormat, HANDLE16 hData16, HANDLE hData32, BOOL owner)
{ {
DWORD flags = 0; DWORD flags = 0;
BOOL bResult = TRUE; BOOL bResult = TRUE;
@ -2513,7 +2513,7 @@ BOOL X11DRV_SetClipboardData(UINT wFormat, HANDLE16 hData16, HANDLE hData32, BOO
/************************************************************************** /**************************************************************************
* CountClipboardFormats * CountClipboardFormats
*/ */
INT X11DRV_CountClipboardFormats(void) INT CDECL X11DRV_CountClipboardFormats(void)
{ {
CLIPBOARDINFO cbinfo; CLIPBOARDINFO cbinfo;
@ -2528,7 +2528,7 @@ INT X11DRV_CountClipboardFormats(void)
/************************************************************************** /**************************************************************************
* X11DRV_EnumClipboardFormats * X11DRV_EnumClipboardFormats
*/ */
UINT X11DRV_EnumClipboardFormats(UINT wFormat) UINT CDECL X11DRV_EnumClipboardFormats(UINT wFormat)
{ {
CLIPBOARDINFO cbinfo; CLIPBOARDINFO cbinfo;
UINT wNextFormat = 0; UINT wNextFormat = 0;
@ -2557,7 +2557,7 @@ UINT X11DRV_EnumClipboardFormats(UINT wFormat)
/************************************************************************** /**************************************************************************
* X11DRV_IsClipboardFormatAvailable * X11DRV_IsClipboardFormatAvailable
*/ */
BOOL X11DRV_IsClipboardFormatAvailable(UINT wFormat) BOOL CDECL X11DRV_IsClipboardFormatAvailable(UINT wFormat)
{ {
BOOL bRet = FALSE; BOOL bRet = FALSE;
CLIPBOARDINFO cbinfo; CLIPBOARDINFO cbinfo;
@ -2578,7 +2578,7 @@ BOOL X11DRV_IsClipboardFormatAvailable(UINT wFormat)
/************************************************************************** /**************************************************************************
* GetClipboardData (USER.142) * GetClipboardData (USER.142)
*/ */
BOOL X11DRV_GetClipboardData(UINT wFormat, HANDLE16* phData16, HANDLE* phData32) BOOL CDECL X11DRV_GetClipboardData(UINT wFormat, HANDLE16* phData16, HANDLE* phData32)
{ {
CLIPBOARDINFO cbinfo; CLIPBOARDINFO cbinfo;
LPWINE_CLIPDATA lpRender; LPWINE_CLIPDATA lpRender;
@ -2773,7 +2773,7 @@ static BOOL X11DRV_CLIPBOARD_SynthesizeData(UINT wFormatID)
* TODO: * TODO:
* Add locale if it hasn't already been added * Add locale if it hasn't already been added
*/ */
void X11DRV_EndClipboardUpdate(void) void CDECL X11DRV_EndClipboardUpdate(void)
{ {
INT count = ClipDataCount; INT count = ClipDataCount;

View File

@ -390,8 +390,8 @@ static int process_events( Display *display, Bool (*filter)(), ULONG_PTR arg )
/*********************************************************************** /***********************************************************************
* MsgWaitForMultipleObjectsEx (X11DRV.@) * MsgWaitForMultipleObjectsEx (X11DRV.@)
*/ */
DWORD X11DRV_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD CDECL X11DRV_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles,
DWORD timeout, DWORD mask, DWORD flags ) DWORD timeout, DWORD mask, DWORD flags )
{ {
DWORD ret; DWORD ret;
struct x11drv_thread_data *data = TlsGetValue( thread_data_tls_index ); struct x11drv_thread_data *data = TlsGetValue( thread_data_tls_index );
@ -1361,7 +1361,7 @@ static void X11DRV_ClientMessage( HWND hwnd, XEvent *xev )
/*********************************************************************** /***********************************************************************
* X11DRV_SendInput (X11DRV.@) * X11DRV_SendInput (X11DRV.@)
*/ */
UINT X11DRV_SendInput( UINT count, LPINPUT inputs, int size ) UINT CDECL X11DRV_SendInput( UINT count, LPINPUT inputs, int size )
{ {
UINT i; UINT i;

View File

@ -1887,7 +1887,7 @@ static BOOL match_x11_keyboard_layout(HKL hkl)
/********************************************************************** /**********************************************************************
* GetAsyncKeyState (X11DRV.@) * GetAsyncKeyState (X11DRV.@)
*/ */
SHORT X11DRV_GetAsyncKeyState(INT key) SHORT CDECL X11DRV_GetAsyncKeyState(INT key)
{ {
SHORT retval; SHORT retval;
@ -1905,7 +1905,7 @@ SHORT X11DRV_GetAsyncKeyState(INT key)
/*********************************************************************** /***********************************************************************
* GetKeyboardLayout (X11DRV.@) * GetKeyboardLayout (X11DRV.@)
*/ */
HKL X11DRV_GetKeyboardLayout(DWORD dwThreadid) HKL CDECL X11DRV_GetKeyboardLayout(DWORD dwThreadid)
{ {
if (!dwThreadid || dwThreadid == GetCurrentThreadId()) if (!dwThreadid || dwThreadid == GetCurrentThreadId())
{ {
@ -1922,7 +1922,7 @@ HKL X11DRV_GetKeyboardLayout(DWORD dwThreadid)
/*********************************************************************** /***********************************************************************
* GetKeyboardLayoutName (X11DRV.@) * GetKeyboardLayoutName (X11DRV.@)
*/ */
BOOL X11DRV_GetKeyboardLayoutName(LPWSTR name) BOOL CDECL X11DRV_GetKeyboardLayoutName(LPWSTR name)
{ {
static const WCHAR formatW[] = {'%','0','8','l','x',0}; static const WCHAR formatW[] = {'%','0','8','l','x',0};
DWORD layout; DWORD layout;
@ -1945,7 +1945,7 @@ BOOL X11DRV_GetKeyboardLayoutName(LPWSTR name)
/*********************************************************************** /***********************************************************************
* LoadKeyboardLayout (X11DRV.@) * LoadKeyboardLayout (X11DRV.@)
*/ */
HKL X11DRV_LoadKeyboardLayout(LPCWSTR name, UINT flags) HKL CDECL X11DRV_LoadKeyboardLayout(LPCWSTR name, UINT flags)
{ {
FIXME("%s, %04x: stub!\n", debugstr_w(name), flags); FIXME("%s, %04x: stub!\n", debugstr_w(name), flags);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
@ -1956,7 +1956,7 @@ HKL X11DRV_LoadKeyboardLayout(LPCWSTR name, UINT flags)
/*********************************************************************** /***********************************************************************
* UnloadKeyboardLayout (X11DRV.@) * UnloadKeyboardLayout (X11DRV.@)
*/ */
BOOL X11DRV_UnloadKeyboardLayout(HKL hkl) BOOL CDECL X11DRV_UnloadKeyboardLayout(HKL hkl)
{ {
FIXME("%p: stub!\n", hkl); FIXME("%p: stub!\n", hkl);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
@ -1967,7 +1967,7 @@ BOOL X11DRV_UnloadKeyboardLayout(HKL hkl)
/*********************************************************************** /***********************************************************************
* ActivateKeyboardLayout (X11DRV.@) * ActivateKeyboardLayout (X11DRV.@)
*/ */
HKL X11DRV_ActivateKeyboardLayout(HKL hkl, UINT flags) HKL CDECL X11DRV_ActivateKeyboardLayout(HKL hkl, UINT flags)
{ {
HKL oldHkl = 0; HKL oldHkl = 0;
struct x11drv_thread_data *thread_data = x11drv_init_thread_data(); struct x11drv_thread_data *thread_data = x11drv_init_thread_data();
@ -2030,7 +2030,7 @@ void X11DRV_MappingNotify( HWND dummy, XEvent *event )
* *
* Note: Windows ignores HKL parameter and uses current active layout instead * Note: Windows ignores HKL parameter and uses current active layout instead
*/ */
SHORT X11DRV_VkKeyScanEx(WCHAR wChar, HKL hkl) SHORT CDECL X11DRV_VkKeyScanEx(WCHAR wChar, HKL hkl)
{ {
Display *display = thread_init_display(); Display *display = thread_init_display();
KeyCode keycode; KeyCode keycode;
@ -2122,7 +2122,7 @@ SHORT X11DRV_VkKeyScanEx(WCHAR wChar, HKL hkl)
/*********************************************************************** /***********************************************************************
* MapVirtualKeyEx (X11DRV.@) * MapVirtualKeyEx (X11DRV.@)
*/ */
UINT X11DRV_MapVirtualKeyEx(UINT wCode, UINT wMapType, HKL hkl) UINT CDECL X11DRV_MapVirtualKeyEx(UINT wCode, UINT wMapType, HKL hkl)
{ {
Display *display = thread_init_display(); Display *display = thread_init_display();
@ -2265,7 +2265,7 @@ UINT X11DRV_MapVirtualKeyEx(UINT wCode, UINT wMapType, HKL hkl)
/*********************************************************************** /***********************************************************************
* GetKeyNameText (X11DRV.@) * GetKeyNameText (X11DRV.@)
*/ */
INT X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize) INT CDECL X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
{ {
Display *display = thread_init_display(); Display *display = thread_init_display();
int vkey, ansi, scanCode; int vkey, ansi, scanCode;
@ -2457,8 +2457,8 @@ static char KEYBOARD_MapDeadKeysym(KeySym keysym)
* FIXME : should do the above (return 2 for non matching deadchar+char combinations) * FIXME : should do the above (return 2 for non matching deadchar+char combinations)
* *
*/ */
INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState, INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState,
LPWSTR bufW, int bufW_size, UINT flags, HKL hkl) LPWSTR bufW, int bufW_size, UINT flags, HKL hkl)
{ {
Display *display = thread_init_display(); Display *display = thread_init_display();
XKeyEvent e; XKeyEvent e;
@ -2728,7 +2728,7 @@ found:
/*********************************************************************** /***********************************************************************
* Beep (X11DRV.@) * Beep (X11DRV.@)
*/ */
void X11DRV_Beep(void) void CDECL X11DRV_Beep(void)
{ {
wine_tsx11_lock(); wine_tsx11_lock();
XBell(gdi_display, 0); XBell(gdi_display, 0);

View File

@ -89,7 +89,7 @@ POINT cursor_pos;
static DWORD last_time_modified; static DWORD last_time_modified;
static RECT cursor_clip; /* Cursor clipping rect */ static RECT cursor_clip; /* Cursor clipping rect */
BOOL X11DRV_SetCursorPos( INT x, INT y ); BOOL CDECL X11DRV_SetCursorPos( INT x, INT y );
/*********************************************************************** /***********************************************************************
@ -933,7 +933,7 @@ static Cursor create_cursor( Display *display, CURSORICONINFO *ptr )
/*********************************************************************** /***********************************************************************
* SetCursor (X11DRV.@) * SetCursor (X11DRV.@)
*/ */
void X11DRV_SetCursor( CURSORICONINFO *lpCursor ) void CDECL X11DRV_SetCursor( CURSORICONINFO *lpCursor )
{ {
struct x11drv_thread_data *data = x11drv_init_thread_data(); struct x11drv_thread_data *data = x11drv_init_thread_data();
Cursor cursor; Cursor cursor;
@ -965,7 +965,7 @@ void X11DRV_SetCursor( CURSORICONINFO *lpCursor )
/*********************************************************************** /***********************************************************************
* SetCursorPos (X11DRV.@) * SetCursorPos (X11DRV.@)
*/ */
BOOL X11DRV_SetCursorPos( INT x, INT y ) BOOL CDECL X11DRV_SetCursorPos( INT x, INT y )
{ {
Display *display = thread_init_display(); Display *display = thread_init_display();
POINT pt; POINT pt;
@ -994,7 +994,7 @@ BOOL X11DRV_SetCursorPos( INT x, INT y )
/*********************************************************************** /***********************************************************************
* GetCursorPos (X11DRV.@) * GetCursorPos (X11DRV.@)
*/ */
BOOL X11DRV_GetCursorPos(LPPOINT pos) BOOL CDECL X11DRV_GetCursorPos(LPPOINT pos)
{ {
Display *display = thread_init_display(); Display *display = thread_init_display();
Window root, child; Window root, child;
@ -1024,7 +1024,7 @@ BOOL X11DRV_GetCursorPos(LPPOINT pos)
* *
* Set the cursor clipping rectangle. * Set the cursor clipping rectangle.
*/ */
BOOL X11DRV_ClipCursor( LPCRECT clip ) BOOL CDECL X11DRV_ClipCursor( LPCRECT clip )
{ {
if (!IntersectRect( &cursor_clip, &virtual_screen_rect, clip )) if (!IntersectRect( &cursor_clip, &virtual_screen_rect, clip ))
cursor_clip = virtual_screen_rect; cursor_clip = virtual_screen_rect;

View File

@ -60,8 +60,8 @@ static void dump_region( const char *p, HRGN hrgn)
/************************************************************************* /*************************************************************************
* ScrollDC (X11DRV.@) * ScrollDC (X11DRV.@)
*/ */
BOOL X11DRV_ScrollDC( HDC hdc, INT dx, INT dy, const RECT *lprcScroll, BOOL CDECL X11DRV_ScrollDC( HDC hdc, INT dx, INT dy, const RECT *lprcScroll,
const RECT *lprcClip, HRGN hrgnUpdate, LPRECT lprcUpdate ) const RECT *lprcClip, HRGN hrgnUpdate, LPRECT lprcUpdate )
{ {
RECT rcSrc, rcClip, offset; RECT rcSrc, rcClip, offset;
INT dxdev, dydev, res; INT dxdev, dydev, res;

View File

@ -266,7 +266,7 @@ static BOOL write_registry_settings(const DEVMODEW *dm)
* EnumDisplaySettingsEx (X11DRV.@) * EnumDisplaySettingsEx (X11DRV.@)
* *
*/ */
BOOL X11DRV_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmode, DWORD flags) BOOL CDECL X11DRV_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmode, DWORD flags)
{ {
static const WCHAR dev_name[CCHDEVICENAME] = static const WCHAR dev_name[CCHDEVICENAME] =
{ 'W','i','n','e',' ','X','1','1',' ','d','r','i','v','e','r',0 }; { 'W','i','n','e',' ','X','1','1',' ','d','r','i','v','e','r',0 };
@ -348,8 +348,8 @@ static const char * _DM_fields(DWORD fields)
* ChangeDisplaySettingsEx (X11DRV.@) * ChangeDisplaySettingsEx (X11DRV.@)
* *
*/ */
LONG X11DRV_ChangeDisplaySettingsEx( LPCWSTR devname, LPDEVMODEW devmode, LONG CDECL X11DRV_ChangeDisplaySettingsEx( LPCWSTR devname, LPDEVMODEW devmode,
HWND hwnd, DWORD flags, LPVOID lpvoid ) HWND hwnd, DWORD flags, LPVOID lpvoid )
{ {
DWORD i, dwBpp = 0; DWORD i, dwBpp = 0;
DEVMODEW dm; DEVMODEW dm;

View File

@ -1475,7 +1475,7 @@ static void destroy_whole_window( Display *display, struct x11drv_win_data *data
/***************************************************************** /*****************************************************************
* SetWindowText (X11DRV.@) * SetWindowText (X11DRV.@)
*/ */
void X11DRV_SetWindowText( HWND hwnd, LPCWSTR text ) void CDECL X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
{ {
Window win; Window win;
@ -1492,7 +1492,7 @@ void X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
* *
* Update the X state of a window to reflect a style change * Update the X state of a window to reflect a style change
*/ */
void X11DRV_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style ) void CDECL X11DRV_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
{ {
struct x11drv_win_data *data; struct x11drv_win_data *data;
DWORD changed; DWORD changed;
@ -1538,7 +1538,7 @@ void X11DRV_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
/*********************************************************************** /***********************************************************************
* DestroyWindow (X11DRV.@) * DestroyWindow (X11DRV.@)
*/ */
void X11DRV_DestroyWindow( HWND hwnd ) void CDECL X11DRV_DestroyWindow( HWND hwnd )
{ {
struct x11drv_thread_data *thread_data = x11drv_thread_data(); struct x11drv_thread_data *thread_data = x11drv_thread_data();
struct x11drv_win_data *data; struct x11drv_win_data *data;
@ -1629,7 +1629,7 @@ static struct x11drv_win_data *create_desktop_win_data( Display *display, HWND h
/********************************************************************** /**********************************************************************
* CreateDesktopWindow (X11DRV.@) * CreateDesktopWindow (X11DRV.@)
*/ */
BOOL X11DRV_CreateDesktopWindow( HWND hwnd ) BOOL CDECL X11DRV_CreateDesktopWindow( HWND hwnd )
{ {
unsigned int width, height; unsigned int width, height;
@ -1671,7 +1671,7 @@ BOOL X11DRV_CreateDesktopWindow( HWND hwnd )
/********************************************************************** /**********************************************************************
* CreateWindow (X11DRV.@) * CreateWindow (X11DRV.@)
*/ */
BOOL X11DRV_CreateWindow( HWND hwnd ) BOOL CDECL X11DRV_CreateWindow( HWND hwnd )
{ {
if (hwnd == GetDesktopWindow() && root_window != DefaultRootWindow( gdi_display )) if (hwnd == GetDesktopWindow() && root_window != DefaultRootWindow( gdi_display ))
{ {
@ -1797,8 +1797,8 @@ XIC X11DRV_get_ic( HWND hwnd )
/*********************************************************************** /***********************************************************************
* X11DRV_GetDC (X11DRV.@) * X11DRV_GetDC (X11DRV.@)
*/ */
void X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect, void CDECL X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
const RECT *top_rect, DWORD flags ) const RECT *top_rect, DWORD flags )
{ {
struct x11drv_escape_set_drawable escape; struct x11drv_escape_set_drawable escape;
struct x11drv_win_data *data = X11DRV_get_win_data( hwnd ); struct x11drv_win_data *data = X11DRV_get_win_data( hwnd );
@ -1850,7 +1850,7 @@ void X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
/*********************************************************************** /***********************************************************************
* X11DRV_ReleaseDC (X11DRV.@) * X11DRV_ReleaseDC (X11DRV.@)
*/ */
void X11DRV_ReleaseDC( HWND hwnd, HDC hdc ) void CDECL X11DRV_ReleaseDC( HWND hwnd, HDC hdc )
{ {
struct x11drv_escape_set_drawable escape; struct x11drv_escape_set_drawable escape;
@ -1870,7 +1870,7 @@ void X11DRV_ReleaseDC( HWND hwnd, HDC hdc )
/*********************************************************************** /***********************************************************************
* SetCapture (X11DRV.@) * SetCapture (X11DRV.@)
*/ */
void X11DRV_SetCapture( HWND hwnd, UINT flags ) void CDECL X11DRV_SetCapture( HWND hwnd, UINT flags )
{ {
struct x11drv_thread_data *thread_data = x11drv_thread_data(); struct x11drv_thread_data *thread_data = x11drv_thread_data();
@ -1904,7 +1904,7 @@ void X11DRV_SetCapture( HWND hwnd, UINT flags )
/***************************************************************** /*****************************************************************
* SetParent (X11DRV.@) * SetParent (X11DRV.@)
*/ */
void X11DRV_SetParent( HWND hwnd, HWND parent, HWND old_parent ) void CDECL X11DRV_SetParent( HWND hwnd, HWND parent, HWND old_parent )
{ {
Display *display = thread_display(); Display *display = thread_display();
struct x11drv_win_data *data = X11DRV_get_win_data( hwnd ); struct x11drv_win_data *data = X11DRV_get_win_data( hwnd );
@ -1939,7 +1939,7 @@ void X11DRV_SetParent( HWND hwnd, HWND parent, HWND old_parent )
* *
* Set the X focus. * Set the X focus.
*/ */
void X11DRV_SetFocus( HWND hwnd ) void CDECL X11DRV_SetFocus( HWND hwnd )
{ {
Display *display = thread_display(); Display *display = thread_display();
struct x11drv_win_data *data; struct x11drv_win_data *data;
@ -1968,8 +1968,8 @@ void X11DRV_SetFocus( HWND hwnd )
/*********************************************************************** /***********************************************************************
* WindowPosChanging (X11DRV.@) * WindowPosChanging (X11DRV.@)
*/ */
void X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags, void CDECL X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags,
const RECT *window_rect, const RECT *client_rect, RECT *visible_rect ) const RECT *window_rect, const RECT *client_rect, RECT *visible_rect )
{ {
struct x11drv_win_data *data = X11DRV_get_win_data( hwnd ); struct x11drv_win_data *data = X11DRV_get_win_data( hwnd );
DWORD style = GetWindowLongW( hwnd, GWL_STYLE ); DWORD style = GetWindowLongW( hwnd, GWL_STYLE );
@ -1998,9 +1998,9 @@ void X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags,
/*********************************************************************** /***********************************************************************
* WindowPosChanged (X11DRV.@) * WindowPosChanged (X11DRV.@)
*/ */
void X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags, void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
const RECT *rectWindow, const RECT *rectClient, const RECT *rectWindow, const RECT *rectClient,
const RECT *visible_rect, const RECT *valid_rects ) const RECT *visible_rect, const RECT *valid_rects )
{ {
struct x11drv_thread_data *thread_data; struct x11drv_thread_data *thread_data;
Display *display; Display *display;
@ -2111,7 +2111,7 @@ void X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
/*********************************************************************** /***********************************************************************
* ShowWindow (X11DRV.@) * ShowWindow (X11DRV.@)
*/ */
UINT X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp ) UINT CDECL X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
{ {
int x, y; int x, y;
unsigned int width, height, border, depth; unsigned int width, height, border, depth;
@ -2161,7 +2161,7 @@ UINT X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
* This is not entirely correct, may need to create * This is not entirely correct, may need to create
* an icon window and set the pixmap as a background * an icon window and set the pixmap as a background
*/ */
void X11DRV_SetWindowIcon( HWND hwnd, UINT type, HICON icon ) void CDECL X11DRV_SetWindowIcon( HWND hwnd, UINT type, HICON icon )
{ {
Display *display = thread_display(); Display *display = thread_display();
struct x11drv_win_data *data; struct x11drv_win_data *data;
@ -2187,7 +2187,7 @@ void X11DRV_SetWindowIcon( HWND hwnd, UINT type, HICON icon )
* *
* Assign specified region to window (for non-rectangular windows) * Assign specified region to window (for non-rectangular windows)
*/ */
int X11DRV_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw ) int CDECL X11DRV_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
{ {
struct x11drv_win_data *data; struct x11drv_win_data *data;
@ -2208,7 +2208,7 @@ int X11DRV_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
* *
* Set transparency attributes for a layered window. * Set transparency attributes for a layered window.
*/ */
void X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags ) void CDECL X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags )
{ {
struct x11drv_win_data *data = X11DRV_get_win_data( hwnd ); struct x11drv_win_data *data = X11DRV_get_win_data( hwnd );
@ -2228,7 +2228,7 @@ void X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO
/********************************************************************** /**********************************************************************
* X11DRV_WindowMessage (X11DRV.@) * X11DRV_WindowMessage (X11DRV.@)
*/ */
LRESULT X11DRV_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp ) LRESULT CDECL X11DRV_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
{ {
struct x11drv_win_data *data; struct x11drv_win_data *data;
@ -2289,7 +2289,7 @@ static BOOL is_netwm_supported( Display *display, Atom atom )
* *
* Perform WM_SYSCOMMAND handling. * Perform WM_SYSCOMMAND handling.
*/ */
LRESULT X11DRV_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam ) LRESULT CDECL X11DRV_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam )
{ {
WPARAM hittest = wparam & 0x0f; WPARAM hittest = wparam & 0x0f;
DWORD dwPoint; DWORD dwPoint;

View File

@ -733,19 +733,19 @@ extern void make_window_embedded( Display *display, struct x11drv_win_data *data
extern XContext winContext; extern XContext winContext;
extern void X11DRV_InitClipboard(void); extern void X11DRV_InitClipboard(void);
extern int X11DRV_AcquireClipboard(HWND hWndClipWindow); extern int CDECL X11DRV_AcquireClipboard(HWND hWndClipWindow);
extern void X11DRV_ResetSelectionOwner(void); extern void X11DRV_ResetSelectionOwner(void);
extern void X11DRV_SetFocus( HWND hwnd ); extern void CDECL X11DRV_SetFocus( HWND hwnd );
extern Cursor X11DRV_GetCursor( Display *display, struct tagCURSORICONINFO *ptr ); extern Cursor X11DRV_GetCursor( Display *display, struct tagCURSORICONINFO *ptr );
extern void X11DRV_SetCursor( struct tagCURSORICONINFO *lpCursor ); extern void CDECL X11DRV_SetCursor( struct tagCURSORICONINFO *lpCursor );
extern BOOL X11DRV_ClipCursor( LPCRECT clip ); extern BOOL CDECL X11DRV_ClipCursor( LPCRECT clip );
extern void X11DRV_InitKeyboard( Display *display ); extern void X11DRV_InitKeyboard( Display *display );
extern void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD dwFlags, DWORD time, extern void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD dwFlags, DWORD time,
DWORD dwExtraInfo, UINT injected_flags ); DWORD dwExtraInfo, UINT injected_flags );
extern void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y, extern void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
DWORD data, DWORD time, DWORD extra_info, UINT injected_flags ); DWORD data, DWORD time, DWORD extra_info, UINT injected_flags );
extern DWORD X11DRV_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout, extern DWORD CDECL X11DRV_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout,
DWORD mask, DWORD flags ); DWORD mask, DWORD flags );
typedef int (*x11drv_error_callback)( Display *display, XErrorEvent *event, void *arg ); typedef int (*x11drv_error_callback)( Display *display, XErrorEvent *event, void *arg );

View File

@ -689,7 +689,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
* *
* Returns the active status of the screen saver * Returns the active status of the screen saver
*/ */
BOOL X11DRV_GetScreenSaveActive(void) BOOL CDECL X11DRV_GetScreenSaveActive(void)
{ {
int timeout, temp; int timeout, temp;
wine_tsx11_lock(); wine_tsx11_lock();
@ -703,7 +703,7 @@ BOOL X11DRV_GetScreenSaveActive(void)
* *
* Activate/Deactivate the screen saver * Activate/Deactivate the screen saver
*/ */
void X11DRV_SetScreenSaveActive(BOOL bActivate) void CDECL X11DRV_SetScreenSaveActive(BOOL bActivate)
{ {
int timeout, interval, prefer_blanking, allow_exposures; int timeout, interval, prefer_blanking, allow_exposures;
static int last_timeout = 15 * 60; static int last_timeout = 15 * 60;

View File

@ -204,7 +204,7 @@ void xinerama_init( unsigned int width, unsigned int height )
/*********************************************************************** /***********************************************************************
* X11DRV_GetMonitorInfo (X11DRV.@) * X11DRV_GetMonitorInfo (X11DRV.@)
*/ */
BOOL X11DRV_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info ) BOOL CDECL X11DRV_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
{ {
int i = monitor_to_index( handle ); int i = monitor_to_index( handle );
@ -225,7 +225,7 @@ BOOL X11DRV_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
/*********************************************************************** /***********************************************************************
* X11DRV_EnumDisplayMonitors (X11DRV.@) * X11DRV_EnumDisplayMonitors (X11DRV.@)
*/ */
BOOL X11DRV_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp ) BOOL CDECL X11DRV_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp )
{ {
int i; int i;