From 13af552ba5b463c635096e49db74cd8dfdba4eac Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 13 Jul 2009 03:49:58 +0000 Subject: [PATCH] - Add initialization of system atoms and fix build. svn path=/trunk/; revision=41937 --- .../subsystems/win32/win32k/ntuser/ntuser.c | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/ntuser.c b/reactos/subsystems/win32/win32k/ntuser/ntuser.c index d32db11e07e..31082516ac4 100644 --- a/reactos/subsystems/win32/win32k/ntuser/ntuser.c +++ b/reactos/subsystems/win32/win32k/ntuser/ntuser.c @@ -33,14 +33,38 @@ #define NDEBUG #include +BOOL InitSysParams(); + +/* GLOBALS *******************************************************************/ + ERESOURCE UserLock; ATOM AtomMessage; // Window Message atom. BOOL gbInitialized; +HINSTANCE hModClient = NULL; -BOOL -InitSysParams(); +/* PRIVATE FUNCTIONS *********************************************************/ -/* FUNCTIONS **********************************************************/ +static +NTSTATUS FASTCALL +InitUserAtoms(VOID) +{ + + gpsi->atomSysClass[ICLS_MENU] = 32768; + gpsi->atomSysClass[ICLS_DESKTOP] = 32769; + gpsi->atomSysClass[ICLS_DIALOG] = 32770; + gpsi->atomSysClass[ICLS_SWITCH] = 32771; + gpsi->atomSysClass[ICLS_ICONTITLE] = 32772; + gpsi->atomSysClass[ICLS_TOOLTIPS] = 32774; + + AtomMessage = IntAddGlobalAtom(L"Message", TRUE); + gpsi->atomSysClass[ICLS_HWNDMESSAGE] = AtomMessage; + + DPRINT("AtomMessage -> %x\n", AtomMessage); + + return STATUS_SUCCESS; +} + +/* FUNCTIONS *****************************************************************/ NTSTATUS FASTCALL InitUserImpl(VOID) @@ -72,6 +96,8 @@ NTSTATUS FASTCALL InitUserImpl(VOID) } } + InitUserAtoms(); + InitSysParams(); return STATUS_SUCCESS;