13 RTL_ATOM AtomA = -1, AtomB = -1, AtomC = -1;
16 ULONG NameLength, Data1, Data2;
18 printf(
"Atom table test app\n\n");
20 printf(
"RtlCreateAtomTable()\n");
27 printf(
" AtomTable %p\n", AtomTable);
29 printf(
"RtlAddAtomToAtomTable()\n");
36 printf(
" AtomA 0x%x\n", AtomA);
39 printf(
"RtlAddAtomToAtomTable()\n");
46 printf(
" AtomB 0x%x\n", AtomB);
50 printf(
"RtlLookupAtomInAtomTable()\n");
57 printf(
" AtomC 0x%x\n", AtomC);
61 printf(
"RtlPinAtomInAtomTable()\n");
66 printf(
"RtlPinAtomInAtomTable()\n");
91 printf(
"RtlQueryAtomInAtomTable()\n");
102 printf(
" RefCount %ld\n", Data1);
103 printf(
" PinCount %ld\n", Data2);
104 printf(
" NameLength %lu\n", NameLength);
108 printf(
"RtlDestroyAtomTable()\n");
112 printf(
"Atom table test app finished\n");
#define NT_SUCCESS(StatCode)
struct atom_table ** PRTL_ATOM_TABLE
NTSYSAPI NTSTATUS NTAPI RtlPinAtomInAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ RTL_ATOM Atom)
NTSYSAPI NTSTATUS NTAPI RtlDestroyAtomTable(IN PRTL_ATOM_TABLE AtomTable)
NTSYSAPI NTSTATUS NTAPI RtlAddAtomToAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ PWSTR AtomName, _Out_ PRTL_ATOM Atom)
NTSYSAPI NTSTATUS NTAPI RtlLookupAtomInAtomTable(_In_ PRTL_ATOM_TABLE AtomTable, _In_ PWSTR AtomName, _Out_ PRTL_ATOM Atom)
NTSYSAPI NTSTATUS NTAPI RtlCreateAtomTable(_In_ ULONG TableSize, _Inout_ PRTL_ATOM_TABLE *AtomTable)
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)