Commit 592abf33 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Move GetProgmanWindow implementation from user32.

parent 62852dc5
...@@ -87,16 +87,7 @@ HWND WINAPI SetProgmanWindow( HWND hwnd ) ...@@ -87,16 +87,7 @@ HWND WINAPI SetProgmanWindow( HWND hwnd )
*/ */
HWND WINAPI GetProgmanWindow(void) HWND WINAPI GetProgmanWindow(void)
{ {
HWND ret = 0; return NtUserGetProgmanWindow();
SERVER_START_REQ(set_global_windows)
{
req->flags = 0;
if (!wine_server_call_err(req))
ret = wine_server_ptr_handle( reply->old_progman_window );
}
SERVER_END_REQ;
return ret;
} }
......
...@@ -2208,6 +2208,20 @@ BOOL WINAPI NtUserSetShellWindowEx( HWND shell, HWND list_view ) ...@@ -2208,6 +2208,20 @@ BOOL WINAPI NtUserSetShellWindowEx( HWND shell, HWND list_view )
return ret; return ret;
} }
HWND get_progman_window(void)
{
HWND ret = 0;
SERVER_START_REQ(set_global_windows)
{
req->flags = 0;
if (!wine_server_call_err(req))
ret = wine_server_ptr_handle( reply->old_progman_window );
}
SERVER_END_REQ;
return ret;
}
HWND set_progman_window( HWND hwnd ) HWND set_progman_window( HWND hwnd )
{ {
SERVER_START_REQ(set_global_windows) SERVER_START_REQ(set_global_windows)
......
...@@ -5437,6 +5437,9 @@ ULONG_PTR WINAPI NtUserCallNoParam( ULONG code ) ...@@ -5437,6 +5437,9 @@ ULONG_PTR WINAPI NtUserCallNoParam( ULONG code )
case NtUserCallNoParam_GetProcessDefaultLayout: case NtUserCallNoParam_GetProcessDefaultLayout:
return process_layout; return process_layout;
case NtUserCallNoParam_GetProgmanWindow:
return HandleToUlong( get_progman_window() );
case NtUserCallNoParam_GetShellWindow: case NtUserCallNoParam_GetShellWindow:
return HandleToUlong( get_shell_window() ); return HandleToUlong( get_shell_window() );
......
...@@ -271,6 +271,7 @@ extern HWND get_capture(void) DECLSPEC_HIDDEN; ...@@ -271,6 +271,7 @@ extern HWND get_capture(void) DECLSPEC_HIDDEN;
extern BOOL get_cursor_pos( POINT *pt ) DECLSPEC_HIDDEN; extern BOOL get_cursor_pos( POINT *pt ) DECLSPEC_HIDDEN;
extern HWND get_focus(void) DECLSPEC_HIDDEN; extern HWND get_focus(void) DECLSPEC_HIDDEN;
extern DWORD get_input_state(void) DECLSPEC_HIDDEN; extern DWORD get_input_state(void) DECLSPEC_HIDDEN;
extern HWND get_progman_window(void) DECLSPEC_HIDDEN;
extern HWND get_shell_window(void) DECLSPEC_HIDDEN; extern HWND get_shell_window(void) DECLSPEC_HIDDEN;
extern BOOL WINAPI release_capture(void) DECLSPEC_HIDDEN; extern BOOL WINAPI release_capture(void) DECLSPEC_HIDDEN;
extern BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret ) DECLSPEC_HIDDEN; extern BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret ) DECLSPEC_HIDDEN;
......
...@@ -911,6 +911,7 @@ enum ...@@ -911,6 +911,7 @@ enum
NtUserCallNoParam_GetDialogBaseUnits, NtUserCallNoParam_GetDialogBaseUnits,
NtUserCallNoParam_GetInputState, NtUserCallNoParam_GetInputState,
NtUserCallNoParam_GetProcessDefaultLayout, NtUserCallNoParam_GetProcessDefaultLayout,
NtUserCallNoParam_GetProgmanWindow,
NtUserCallNoParam_GetShellWindow, NtUserCallNoParam_GetShellWindow,
NtUserCallNoParam_ReleaseCapture, NtUserCallNoParam_ReleaseCapture,
/* temporary exports */ /* temporary exports */
...@@ -943,6 +944,11 @@ static inline DWORD NtUserGetProcessDefaultLayout(void) ...@@ -943,6 +944,11 @@ static inline DWORD NtUserGetProcessDefaultLayout(void)
return NtUserCallNoParam( NtUserCallNoParam_GetProcessDefaultLayout ); return NtUserCallNoParam( NtUserCallNoParam_GetProcessDefaultLayout );
} }
static inline HWND NtUserGetProgmanWindow(void)
{
return UlongToHandle( NtUserCallNoParam( NtUserCallNoParam_GetProgmanWindow ));
}
static inline HWND NtUserGetShellWindow(void) static inline HWND NtUserGetShellWindow(void)
{ {
return UlongToHandle( NtUserCallNoParam( NtUserCallNoParam_GetShellWindow )); return UlongToHandle( NtUserCallNoParam( NtUserCallNoParam_GetShellWindow ));
......
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