PATCH[2/6] user32.dll:OpenInputDesktop API Implementation

shanmukha sainath addepalli sainath.addepalli at gmail.com
Sat Aug 29 00:52:00 CDT 2009


Hi,

     This patch implements OpenInputDesktop API of user32/winstation.c.This
function calls its declaration handler.

     OpenInputDesktop when called Opens active desktop with the requested
access rights.

*     Change Log:* Implemented OpenInputDesktop

-- 
Regards
Sainath A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090829/482c3299/attachment.htm>
-------------- next part --------------
From 04711c0376781482c32d0b342a58cbd3a1e07b4a Mon Sep 17 00:00:00 2001
From: Sainath Addepalli <sainath.addepalli at gmail.com>
Date: Fri, 28 Aug 2009 18:23:13 +0530
Subject: OpenInputDesktop API

---
 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..4442760 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;
+    HANDLE 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