NtAddAtomEx - NtDoc

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

// rev
/**
 * The NtAddAtomEx routine adds a Unicode string to the system atom table with
 * additional creation flags.
 *
 * \param AtomName A pointer to a Unicode string containing the atom name.
 * \param Length The length, in bytes, of the string pointed to by AtomName.
 * \param Atom An optional pointer that receives the resulting atom identifier.
 * \param Flags A set of flags that control atom creation behavior.
 * \return NTSTATUS Successful or errant status.
 * \remarks ATOM_FLAG_GLOBAL may be used to create a global atom.
 * Only ATOM_FLAG_GLOBAL and ATOM_FLAG_NONE are currently supported.
 * Any other flag value results in STATUS_INVALID_PARAMETER.
 * \see https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-addatomw
 */
NTSYSCALLAPI
NTSTATUS
NTAPI
NtAddAtomEx(
    _In_reads_bytes_opt_(Length) PCWSTR AtomName,
    _In_ ULONG Length,
    _Out_opt_ PRTL_ATOM Atom,
    _In_ ULONG Flags
    );

#endif
#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwAddAtomEx(
    _In_reads_bytes_opt_(Length) PCWSTR AtomName,
    _In_ ULONG Length,
    _Out_opt_ PRTL_ATOM Atom,
    _In_ ULONG Flags
    );

#endif

View code on GitHub

NtDoc

No description available.