Author: jimtabor
Date: Tue Jun 30 23:12:02 2009
New Revision: 41719
URL:
http://svn.reactos.org/svn/reactos?rev=41719&view=rev
Log:
- Implement support function adding global atoms in win32k.
Modified:
trunk/reactos/subsystems/win32/win32k/include/useratom.h
trunk/reactos/subsystems/win32/win32k/ntuser/useratom.c
Modified: trunk/reactos/subsystems/win32/win32k/include/useratom.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/useratom.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/useratom.h [iso-8859-1] Tue Jun 30
23:12:02 2009
@@ -5,5 +5,6 @@
IntAddAtom(LPWSTR AtomName);
ULONG FASTCALL
IntGetAtomName(RTL_ATOM nAtom, LPWSTR lpBuffer, ULONG nSize);
+RTL_ATOM FASTCALL IntAddGlobalAtom(LPWSTR,BOOL);
#endif /* _WIN32K_USERATOM_H */
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/useratom.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/useratom.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/useratom.c [iso-8859-1] Tue Jun 30
23:12:02 2009
@@ -79,4 +79,23 @@
return Size;
}
+RTL_ATOM FASTCALL
+IntAddGlobalAtom(LPWSTR lpBuffer, BOOL PinAtom)
+{
+ RTL_ATOM Atom;
+ NTSTATUS Status = STATUS_SUCCESS;
+
+ Status = RtlAddAtomToAtomTable(gAtomTable, lpBuffer, &Atom);
+
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("Error init Global Atom.\n");
+ return 0;
+ }
+
+ if ( Atom && PinAtom ) RtlPinAtomInAtomTable(gAtomTable, Atom);
+
+ return Atom;
+}
+
/* EOF */