RtlCreateAtomTable - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
NTSTATUS
NTAPI
RtlCreateAtomTable(
    _In_ ULONG NumberOfBuckets,
    _Inout_ PVOID *AtomTableHandle
    );

#endif

View code on GitHub

NtDoc

The RtlCreateAtomTable function creates an atom table.

Parameters

NumberOfBuckets [in]

Specifies the number of groups used to organize atom entries. Each bucket can contain multiple atoms, each having a different hash value, which helps minimize hash collisions.

If NumberOfBuckets is set to 0, the function uses a default bucket count of 37.

AtomTableHandle [in, out]

A pointer to a variable that receives the newly created atom table.

Note: The pointer referenced by AtomTableHandle must be set to NULL before calling RtlCreateAtomTable. If the pointer is not NULL, the function returns ERROR_SUCCESS without modifying the pointer or creating a new atom table.

Return value

Returns STATUS_SUCCESS on success.

The function may return the following status code:

Remarks

After the atom table is created, the memory referenced by AtomTableHandle begins with the 4-byte header "Atom".

See also