ReactOS 0.4.15-dev-7924-g5949c20
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;
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}
LONG NTSTATUS
Definition: precomp.h:26
_Out_ RTL_ATOM * Atom
Definition: class.h:54
#define NULL
Definition: types.h:112
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:25
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
#define STATUS_SUCCESS
Definition: shellext.h:65
struct _DESKTOP * rpdesk
Definition: win32.h:92
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
Definition: error.c:31
PRTL_ATOM_TABLE gAtomTable
Definition: session.c:13

Referenced by co_IntShellHookNotify(), and NtUserRegisterWindowMessage().

◆ IntAddGlobalAtom()

RTL_ATOM FASTCALL IntAddGlobalAtom ( LPWSTR  lpBuffer,
BOOL  PinAtom 
)

Definition at line 62 of file useratom.c.

63{
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}
#define ERR(fmt,...)
Definition: debug.h:110
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
NTSYSAPI NTSTATUS NTAPI RtlPinAtomInAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ RTL_ATOM Atom)

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}
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)
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533

Referenced by _Success_(), and NtUserGetClipboardFormatName().