NtQueryInformationAtom - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

NTSYSCALLAPI
NTSTATUS
NTAPI
NtQueryInformationAtom(
    _In_ RTL_ATOM Atom,
    _In_ ATOM_INFORMATION_CLASS AtomInformationClass,
    _Out_writes_bytes_(AtomInformationLength) PVOID AtomInformation,
    _In_ ULONG AtomInformationLength,
    _Out_opt_ PULONG ReturnLength
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwQueryInformationAtom(
    _In_ RTL_ATOM Atom,
    _In_ ATOM_INFORMATION_CLASS AtomInformationClass,
    _Out_writes_bytes_(AtomInformationLength) PVOID AtomInformation,
    _In_ ULONG AtomInformationLength,
    _Out_opt_ PULONG ReturnLength
    );

#endif

View code on GitHub

NtQueryInformationAtom is used to get single Atom properties or to read Global Atom Table.

Atom

Atom to query. If AtomInformationClass parameter is AtomTableInformation, Atom parameter is not used.

AtomInformationClass

See ATOM_INFORMATION_CLASS enumeration type for details.

AtomInformation

Result of call - pointer to user's allocated buffer for data.

AtomInformationLength

Size of AtomInformation buffer, in bytes.

ReturnLength

Pointer to ULONG value contains required AtomInformation buffer size.

Documented by

See also