winsta: add a stub for WinStationGetProcessSid

Austin English austinenglish at gmail.com
Tue Jun 14 16:56:45 CDT 2011


Brought to you by the keeping Focht happy department.

Undocumented. There's a prototype here:
http://forum.sysinternals.com/how-to-get-user-domain-names-of-all-processes_topic24813.html

which crashes process explorer. I also found:
http://www.rsdn.ru/forum/winapi/2860341.1.aspx

which got further, FILETIME needed to be a pointer to the struct. Now
it works :)

Fixes http://bugs.winehq.org/show_bug.cgi?id=27475
-- 
-Austin
-------------- next part --------------
diff --git a/dlls/winsta/main.c b/dlls/winsta/main.c
index 707e33f..1c73676 100644
--- a/dlls/winsta/main.c
+++ b/dlls/winsta/main.c
@@ -59,3 +59,12 @@ BOOLEAN WINAPI WinStationQueryInformationW( HANDLE server, ULONG logon_id, WINST
     SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
     return FALSE;
 }
+
+BOOL WINAPI WinStationGetProcessSid( PVOID a, HANDLE server, DWORD process_id, PFILETIME process_start_time, 
+                                     PBYTE process_user_sid, PDWORD sid_size)
+{
+    FIXME( "(%p, %p, %d, %p, %p, %p): stub\n", a, server, process_id, process_start_time, process_user_sid, sid_size);
+    SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
+    return FALSE;
+}
+
diff --git a/dlls/winsta/winsta.spec b/dlls/winsta/winsta.spec
index 53d4479..32185d3 100644
--- a/dlls/winsta/winsta.spec
+++ b/dlls/winsta/winsta.spec
@@ -39,7 +39,7 @@
 @ stub WinStationGetLanAdapterNameA
 @ stub WinStationGetLanAdapterNameW
 @ stub WinStationGetMachinePolicy
-@ stub WinStationGetProcessSid
+@ stdcall WinStationGetProcessSid(ptr ptr long ptr ptr ptr)
 @ stub WinStationGetTermSrvCountersValue
 @ stub WinStationInstallLicense
 @ stub WinStationIsHelpAssistantSession


More information about the wine-patches mailing list