ReactOS  0.4.15-dev-313-g8fde48b
useratom.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

RTL_ATOM FASTCALL IntAddAtom (LPWSTR AtomName)
 
ULONG FASTCALL IntGetAtomName (RTL_ATOM nAtom, LPWSTR lpBuffer, ULONG nSize)
 
RTL_ATOM FASTCALL IntAddGlobalAtom (LPWSTR, BOOL)
 

Function Documentation

◆ IntAddAtom()

RTL_ATOM FASTCALL IntAddAtom ( LPWSTR  AtomName)

Definition at line 13 of file useratom.c.

14 {
16  PTHREADINFO pti;
17  RTL_ATOM Atom;
18 
20  if (pti->rpdesk == NULL)
21  {
23  return (RTL_ATOM)0;
24  }
25 
27 
28  if (!NT_SUCCESS(Status))
29  {
31  return (RTL_ATOM)0;
32  }
33  return Atom;
34 }
unsigned short RTL_ATOM
Definition: atom.c:42
NTSYSAPI NTSTATUS NTAPI RtlAddAtomToAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ PWSTR AtomName, _Out_ PRTL_ATOM Atom)
PVOID NTAPI PsGetCurrentThreadWin32Thread(VOID)
Definition: thread.c:805
LONG NTSTATUS
Definition: precomp.h:26
PRTL_ATOM_TABLE gAtomTable
Definition: session.c:13
_Out_ RTL_ATOM * Atom
Definition: class.h:54
struct _DESKTOP * rpdesk
Definition: win32.h:91
smooth NULL
Definition: ftsmooth.c:416
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
VOID FASTCALL SetLastNtError(NTSTATUS Status)
Definition: error.c:36
Status
Definition: gdiplustypes.h:24
return STATUS_SUCCESS
Definition: btrfs.c:3014

Referenced by co_IntShellHookNotify(), and NtUserRegisterWindowMessage().

◆ IntAddGlobalAtom()

RTL_ATOM FASTCALL IntAddGlobalAtom ( LPWSTR  ,
BOOL   
)

Definition at line 62 of file useratom.c.

63 {
64  RTL_ATOM Atom;
66 
68 
69  if (!NT_SUCCESS(Status))
70  {
71  ERR("Error init Global Atom.\n");
72  return 0;
73  }
74 
75  if (Atom && PinAtom)
77 
78  return Atom;
79 }
unsigned short RTL_ATOM
Definition: atom.c:42
NTSYSAPI NTSTATUS NTAPI RtlAddAtomToAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ PWSTR AtomName, _Out_ PRTL_ATOM Atom)
LONG NTSTATUS
Definition: precomp.h:26
PRTL_ATOM_TABLE gAtomTable
Definition: session.c:13
NTSYSAPI NTSTATUS NTAPI RtlPinAtomInAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ RTL_ATOM Atom)
_Out_ RTL_ATOM * Atom
Definition: class.h:54
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:173
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:24
#define ERR(fmt,...)
Definition: debug.h:110
return STATUS_SUCCESS
Definition: btrfs.c:3014

Referenced by InitUserAtoms().

◆ IntGetAtomName()

ULONG FASTCALL IntGetAtomName ( RTL_ATOM  nAtom,
LPWSTR  lpBuffer,
ULONG  nSize 
)

Definition at line 37 of file useratom.c.

38 {
40  PTHREADINFO pti;
41  ULONG Size = cjBufSize;
42 
44  if (pti->rpdesk == NULL)
45  {
47  return 0;
48  }
49 
51 
52  if (!NT_SUCCESS(Status))
53  {
55  return 0;
56  }
57 
58  return Size;
59 }
PVOID NTAPI PsGetCurrentThreadWin32Thread(VOID)
Definition: thread.c:805
LONG NTSTATUS
Definition: precomp.h:26
PRTL_ATOM_TABLE gAtomTable
Definition: session.c:13
struct _DESKTOP * rpdesk
Definition: win32.h:91
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:173
smooth NULL
Definition: ftsmooth.c:416
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
NTSYSAPI NTSTATUS NTAPI RtlQueryAtomInAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ RTL_ATOM Atom, _Out_opt_ PULONG RefCount, _Out_opt_ PULONG PinCount, _Out_opt_z_bytecap_(*NameLength) PWSTR AtomName, _Inout_opt_ PULONG NameLength)
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
VOID FASTCALL SetLastNtError(NTSTATUS Status)
Definition: error.c:36
Status
Definition: gdiplustypes.h:24
unsigned int ULONG
Definition: retypes.h:1
return STATUS_SUCCESS
Definition: btrfs.c:3014

Referenced by _Success_(), and NtUserGetClipboardFormatName().