Author: jimtabor
Date: Thu Jan 14 01:43:54 2010
New Revision: 45068
URL:
http://svn.reactos.org/svn/reactos?rev=45068&view=rev
Log:
[Win32k|User32]
- Updated headers for the next round of changes.
Modified:
trunk/reactos/dll/win32/user32/misc/misc.c
trunk/reactos/include/reactos/win32k/ntuser.h
trunk/reactos/subsystems/win32/win32k/include/desktop.h
trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
trunk/reactos/subsystems/win32/win32k/ntuser/hook.c
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/dll/win32/user32/misc/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/misc…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/misc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/misc/misc.c [iso-8859-1] Thu Jan 14 01:43:54 2010
@@ -524,7 +524,7 @@
FASTCALL
GetThreadDesktopWnd(VOID)
{
- PWND Wnd = GetThreadDesktopInfo()->Wnd;
+ PWND Wnd = GetThreadDesktopInfo()->spwnd;
if (Wnd != NULL)
Wnd = DesktopPtrToUser(Wnd);
return Wnd;
Modified: trunk/reactos/include/reactos/win32k/ntuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntu…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] Thu Jan 14 01:43:54 2010
@@ -40,13 +40,13 @@
{
PVOID pvDesktopBase;
PVOID pvDesktopLimit;
-
- HANDLE hKernelHeap;
- ULONG_PTR HeapLimit;
+ struct _WND *spwnd;
+ DWORD fsHooks;
+ struct tagHOOK * aphkStart[16];
+
HWND hTaskManWindow;
HWND hProgmanWindow;
HWND hShellWindow;
- struct _WND *Wnd;
union
{
Modified: trunk/reactos/subsystems/win32/win32k/include/desktop.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/desktop.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/desktop.h [iso-8859-1] Thu Jan 14
01:43:54 2010
@@ -6,29 +6,36 @@
typedef struct _DESKTOP
{
+ PDESKTOPINFO pDeskInfo;
+ LIST_ENTRY ListEntry;
+ PWND spwndForeground;
+ PWND spwndTray;
+ PWND spwndMessage;
+ PWND spwndTooltip;
+ PSECTION_OBJECT hsectionDesktop;
+ PWIN32HEAP pheapDesktop;
+ ULONG_PTR ulHeapSize;
+ LIST_ENTRY PtiList;
+ /* use for tracking mouse moves. */
+ PWND spwndTrack;
+ DWORD htEx;
+ RECT rcMouseHover;
+ DWORD dwMouseHoverTime;
+
+ /* ReactOS */
CSHORT Type;
CSHORT Size;
- LIST_ENTRY ListEntry;
-
- LIST_ENTRY PtiList;
-
+ /* Rectangle of the work area */
+ RECTL WorkArea;
/* Pointer to the associated window station. */
struct _WINSTATION_OBJECT *WindowStation;
/* Pointer to the active queue. */
PVOID ActiveMessageQueue;
- /* Rectangle of the work area */
- RECTL WorkArea;
/* Handle of the desktop window. */
HANDLE DesktopWindow;
/* Thread blocking input */
PVOID BlockInputThread;
-
LIST_ENTRY ShellHookWindows;
-
- PWIN32HEAP pheapDesktop;
- PSECTION_OBJECT DesktopHeapSection;
- PDESKTOPINFO pDeskInfo;
- PWND spwndMessage;
} DESKTOP, *PDESKTOP;
extern PDESKTOP InputDesktop;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] Thu Jan 14
01:43:54 2010
@@ -847,10 +847,10 @@
static VOID
IntFreeDesktopHeap(IN OUT PDESKTOP Desktop)
{
- if (Desktop->DesktopHeapSection != NULL)
+ if (Desktop->hsectionDesktop != NULL)
{
- ObDereferenceObject(Desktop->DesktopHeapSection);
- Desktop->DesktopHeapSection = NULL;
+ ObDereferenceObject(Desktop->hsectionDesktop);
+ Desktop->hsectionDesktop = NULL;
}
}
/* SYSCALLS *******************************************************************/
@@ -1018,8 +1018,8 @@
NULL);
if (!NT_SUCCESS(Status)) RETURN(NULL);
- DesktopObject->DesktopHeapSection = NULL;
- DesktopObject->pheapDesktop =
UserCreateHeap(&DesktopObject->DesktopHeapSection,
+ DesktopObject->hsectionDesktop = NULL;
+ DesktopObject->pheapDesktop =
UserCreateHeap(&DesktopObject->hsectionDesktop,
&DesktopHeapSystemBase,
HeapSize);
if (DesktopObject->pheapDesktop == NULL)
@@ -1890,7 +1890,7 @@
/* we're the first, map the heap */
DPRINT("Noone mapped the desktop heap %p yet, so - map it!\n",
DesktopObject->pheapDesktop);
Offset.QuadPart = 0;
- Status = MmMapViewOfSection(DesktopObject->DesktopHeapSection,
+ Status = MmMapViewOfSection(DesktopObject->hsectionDesktop,
PsGetCurrentProcess(),
&UserBase,
0,
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/hook.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] Thu Jan 14 01:43:54
2010
@@ -117,6 +117,9 @@
if (W32Thread->pClientInfo)
W32Thread->pClientInfo->fsHooks = W32Thread->fsHooks;
+ if (W32Thread->pDeskInfo) // Do this for now.
+ W32Thread->pDeskInfo->fsHooks= W32Thread->fsHooks;
+
Hook->head.pti = W32Thread;
Hook->head.rpdesk = W32Thread->Desktop;
}
@@ -237,6 +240,9 @@
W32Thread->fsHooks &= ~HOOKID_TO_FLAG(Hook->HookId);
GetWin32ClientInfo()->fsHooks = W32Thread->fsHooks;
+
+ if (W32Thread->pDeskInfo) // Do this for now.
+ W32Thread->pDeskInfo->fsHooks= W32Thread->fsHooks;
if (0 != Table->Counts[HOOKID_TO_INDEX(Hook->HookId)])
{
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Thu Jan 14 01:43:54
2010
@@ -1844,7 +1844,7 @@
{
/* If there is no desktop window yet, we must be creating it */
pti->Desktop->DesktopWindow = hWnd;
- pti->Desktop->pDeskInfo->Wnd = Wnd;
+ pti->Desktop->pDeskInfo->spwnd = Wnd;
}
/*