[4/6] user32:OpenInputDesktop API Implementation (try 2)
shanmukha sainath addepalli
sainath.addepalli at gmail.com
Sat Dec 12 05:06:11 CST 2009
Hi,
This patch includes implementation of OpenInputDesktop. Some
applications use OpenInputDesktop API for opening a desktop that
receives user input.This patch calls open_input_desktop server.
Difference from Previous Patch:
1. The return value type is declared as HDESK.
Initially it was HANDLE.
Change Log: Implemented OpenInputDesktop.
--
Regards
Sainath A
-------------- next part --------------
From ed076f08345dcd221614d52322326a46339d19e3 Mon Sep 17 00:00:00 2001
From: Sainath Addepalli <sainath.addepalli at gmail.com>
Date: Fri, 11 Dec 2009 19:33:11 +0530
Subject: OpenInputDesktop API Declaration
---
dlls/user32/winstation.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/winstation.c b/dlls/user32/winstation.c
index c6c52b7..3e981a7 100644
--- a/dlls/user32/winstation.c
+++ b/dlls/user32/winstation.c
@@ -461,9 +461,18 @@ BOOL WINAPI EnumDesktopsW( HWINSTA winsta, DESKTOPENUMPROCW func, LPARAM lparam
*/
HDESK WINAPI OpenInputDesktop( DWORD flags, BOOL inherit, ACCESS_MASK access )
{
- FIXME( "(%x,%i,%x): stub\n", flags, inherit, access );
- SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
- return 0;
+ HDESK ret = 0;
+
+ SERVER_START_REQ( open_input_desktop )
+ {
+ req->flags = flags;
+ req->access = access;
+ req->attributes = OBJ_CASE_INSENSITIVE | (inherit ? OBJ_INHERIT : 0);
+ if(!wine_server_call( req )) ret = wine_server_ptr_handle( reply->handle );
+ }
+ SERVER_END_REQ;
+
+ return ret;
}
--
1.6.0.4
More information about the wine-patches
mailing list