Author: jimtabor
Date: Mon Jul 13 07:49:58 2009
New Revision: 41937
URL:
http://svn.reactos.org/svn/reactos?rev=41937&view=rev
Log:
- Add initialization of system atoms and fix build.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c [iso-8859-1] Mon Jul 13 07:49:58
2009
@@ -33,14 +33,38 @@
#define NDEBUG
#include <debug.h>
+BOOL InitSysParams();
+
+/* GLOBALS *******************************************************************/
+
ERESOURCE UserLock;
ATOM AtomMessage; // Window Message atom.
BOOL gbInitialized;
-
-BOOL
-InitSysParams();
-
-/* FUNCTIONS **********************************************************/
+HINSTANCE hModClient = NULL;
+
+/* PRIVATE 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)
@@ -71,6 +95,8 @@
DPRINT("Global Server Data -> %x\n", gpsi);
}
}
+
+ InitUserAtoms();
InitSysParams();