Author: weiden
Date: Thu Nov 15 06:09:44 2007
New Revision: 30454
URL:
http://svn.reactos.org/svn/reactos?rev=30454&view=rev
Log:
Forgot to commit this
Modified:
trunk/reactos/dll/win32/user32/include/user32.h
Modified: trunk/reactos/dll/win32/user32/include/user32.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/include/u…
==============================================================================
--- trunk/reactos/dll/win32/user32/include/user32.h (original)
+++ trunk/reactos/dll/win32/user32/include/user32.h Thu Nov 15 06:09:44 2007
@@ -44,3 +44,24 @@
LONG STDCALL GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *);
BOOL FASTCALL IsMetaFile(HDC);
+extern PW32PROCESSINFO g_pi;
+
+static PVOID __inline
+SharedPtrToUser(PVOID Ptr)
+{
+ ASSERT(Ptr != NULL);
+ ASSERT(g_pi != NULL);
+ ASSERT(g_pi->UserHeapDelta != 0);
+ return (PVOID)((ULONG_PTR)Ptr - g_pi->UserHeapDelta);
+}
+
+static PVOID __inline
+DesktopPtrToUser(PVOID Ptr)
+{
+ PW32THREADINFO ti = GetW32ThreadInfo();
+ ASSERT(Ptr != NULL);
+ ASSERT(ti != NULL);
+ ASSERT(ti->DesktopHeapDelta != 0);
+ return (PVOID)((ULONG_PTR)Ptr - ti->DesktopHeapDelta);
+}
+