#ifndef _NTRTL_H
NTSYSAPI
NTSTATUS
NTAPI
RtlCreateAtomTable(
_In_ ULONG NumberOfBuckets,
_Inout_ PVOID *AtomTableHandle
);
View code on GitHubThe RtlCreateAtomTable function creates an atom table.
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.
Returns STATUS_SUCCESS on success.
The function may return the following status code:
STATUS_NO_MEMORY
After the atom table is created, the memory referenced by AtomTableHandle begins with the 4-byte header "Atom".