Go to the source code of this file.
◆ GlobalAddAtomA()
◆ GlobalFindAtomA()
◆ InternalAddAtom()
Definition at line 32 of file atom.c.
35{
41
42
44 {
45
48 {
49
52 }
53
54
56 }
57 else
58 {
59
60 if (Unicode)
61 {
62
66 }
67 else
68 {
69
71
72
74 {
75
80 }
81 else
82 {
83
85
86
90 }
91 }
92
93
95 {
98 }
99 }
100
101
102 if (Local)
103 {
104
108 }
109 else
110 {
111
115 }
116
117
119
120
122 {
123
125 }
126
127
129}
#define NT_SUCCESS(StatCode)
PVOID WINAPI InternalInitAtomTable(VOID)
NTSYSAPI NTSTATUS NTAPI RtlAddAtomToAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ PWSTR AtomName, _Out_ PRTL_ATOM Atom)
NTSYSAPI NTSTATUS NTAPI RtlAnsiStringToUnicodeString(PUNICODE_STRING DestinationString, PANSI_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
NTSYSAPI VOID NTAPI RtlInitAnsiString(PANSI_STRING DestinationString, PCSZ SourceString)
NTSTATUS NTAPI NtAddAtom(IN PWSTR AtomName, IN ULONG AtomNameLength, OUT PRTL_ATOM Atom)
DWORD BaseSetLastNTError(IN NTSTATUS Status)
#define STATUS_INVALID_PARAMETER
Referenced by AddAtomA(), AddAtomW(), GlobalAddAtomA(), and GlobalAddAtomW().
◆ InternalFindAtom()
Definition at line 133 of file atom.c.
136{
142
143
145 {
146
149 {
150
153 }
154
155
157 }
158 else
159 {
160
161 if (Unicode)
162 {
163
167 }
168 else
169 {
170
172
173
175 {
176
181 }
182 else
183 {
184
186
187
191 }
192 }
193
194
196 {
200 }
201 }
202
203
204 if (Local)
205 {
206
210 }
211 else
212 {
213
214 if (!AtomNameString->
Length)
215 {
216
219 }
220 else
221 {
222
226 }
227 }
228
229
231
232
234 {
235
237 }
238
239
241}
NTSYSAPI NTSTATUS NTAPI RtlLookupAtomInAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ PWSTR AtomName, _Out_ PRTL_ATOM Atom)
NTSTATUS NTAPI NtFindAtom(IN PWSTR AtomName, IN ULONG AtomNameLength, OUT PRTL_ATOM Atom)
#define STATUS_OBJECT_NAME_NOT_FOUND
Referenced by FindAtomA(), FindAtomW(), GlobalFindAtomA(), and GlobalFindAtomW().