Commit a23ad981 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Move KillSystemTimer implementation from user32.

parent e520e29c
...@@ -4422,17 +4422,7 @@ UINT_PTR WINAPI SetTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMERPROC proc ) ...@@ -4422,17 +4422,7 @@ UINT_PTR WINAPI SetTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMERPROC proc )
*/ */
BOOL WINAPI KillSystemTimer( HWND hwnd, UINT_PTR id ) BOOL WINAPI KillSystemTimer( HWND hwnd, UINT_PTR id )
{ {
BOOL ret; return NtUserCallHwndParam( hwnd, id, NtUserKillSystemTimer );
SERVER_START_REQ( kill_win_timer )
{
req->win = wine_server_user_handle( hwnd );
req->msg = WM_SYSTIMER;
req->id = id;
ret = !wine_server_call_err( req );
}
SERVER_END_REQ;
return ret;
} }
......
...@@ -210,6 +210,22 @@ BOOL WINAPI NtUserKillTimer( HWND hwnd, UINT_PTR id ) ...@@ -210,6 +210,22 @@ BOOL WINAPI NtUserKillTimer( HWND hwnd, UINT_PTR id )
return ret; return ret;
} }
/* see KillSystemTimer */
BOOL kill_system_timer( HWND hwnd, UINT_PTR id )
{
BOOL ret;
SERVER_START_REQ( kill_win_timer )
{
req->win = wine_server_user_handle( hwnd );
req->msg = WM_SYSTIMER;
req->id = id;
ret = !wine_server_call_err( req );
}
SERVER_END_REQ;
return ret;
}
/* see SendMessageW */ /* see SendMessageW */
LRESULT send_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) LRESULT send_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
{ {
......
...@@ -313,6 +313,7 @@ extern BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret ) DECL ...@@ -313,6 +313,7 @@ extern BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret ) DECL
extern BOOL set_foreground_window( HWND hwnd, BOOL mouse ) DECLSPEC_HIDDEN; extern BOOL set_foreground_window( HWND hwnd, BOOL mouse ) DECLSPEC_HIDDEN;
/* message.c */ /* message.c */
extern BOOL kill_system_timer( HWND hwnd, UINT_PTR id ) DECLSPEC_HIDDEN;
extern LRESULT post_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) DECLSPEC_HIDDEN; extern LRESULT post_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) DECLSPEC_HIDDEN;
extern LRESULT send_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) DECLSPEC_HIDDEN; extern LRESULT send_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) DECLSPEC_HIDDEN;
......
...@@ -3332,6 +3332,8 @@ ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code ) ...@@ -3332,6 +3332,8 @@ ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code )
return get_window_word( hwnd, param ); return get_window_word( hwnd, param );
case NtUserIsChild: case NtUserIsChild:
return is_child( hwnd, UlongToHandle(param) ); return is_child( hwnd, UlongToHandle(param) );
case NtUserKillSystemTimer:
return kill_system_timer( hwnd, param );
case NtUserMonitorFromWindow: case NtUserMonitorFromWindow:
return HandleToUlong( monitor_from_window( hwnd, param, NtUserMonitorFromWindow )); return HandleToUlong( monitor_from_window( hwnd, param, NtUserMonitorFromWindow ));
case NtUserSetCaptureWindow: case NtUserSetCaptureWindow:
......
...@@ -178,6 +178,7 @@ enum ...@@ -178,6 +178,7 @@ enum
NtUserGetWindowThread, NtUserGetWindowThread,
NtUserGetWindowWord, NtUserGetWindowWord,
NtUserIsChild, NtUserIsChild,
NtUserKillSystemTimer,
NtUserMonitorFromWindow, NtUserMonitorFromWindow,
NtUserSetCaptureWindow, NtUserSetCaptureWindow,
NtUserSetForegroundWindow, NtUserSetForegroundWindow,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment