[1/3] include: Add definitions for Win8 pseudo handles.

Sebastian Lackner sebastian at fds-team.de
Wed Feb 10 15:22:30 CST 2016


From: Michael Müller <michael at fds-team.de>

Signed-off-by: Michael Müller <michael at fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

The definitions are outside of the __WINESRC__ #ifdef because they are
also publicly available in processthreadsapi.h on Windows 8+ (as inline
functions). In Wine we currently have all those definitions in winbase.h.

 include/winbase.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/winbase.h b/include/winbase.h
index f35391d..6dde85d 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -2973,6 +2973,10 @@ WINBASEAPI VOID        WINAPI SetLastError(DWORD);
 #define GetCurrentThread()  ((HANDLE)~(ULONG_PTR)1)
 #endif
 
+#define GetCurrentProcessToken()            ((HANDLE)~(ULONG_PTR)3)
+#define GetCurrentThreadToken()             ((HANDLE)~(ULONG_PTR)4)
+#define GetCurrentThreadEffectiveToken()    ((HANDLE)~(ULONG_PTR)5)
+
 /* WinMain(entry point) must be declared in winbase.h. */
 /* If this is not declared, we cannot compile many sources written with C++. */
 int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
-- 
2.7.0



More information about the wine-patches mailing list