NtCreateSymbolicLinkObject - NtDoc

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

/**
 * The NtCreateSymbolicLinkObject routine creates a symbolic link object.
 *
 * \param LinkHandle Pointer to a HANDLE variable that receives a handle to the symbolic link object.
 * \param DesiredAccess An ACCESS_MASK that specifies the requested access to the symbolic link object.
 * \param ObjectAttributes The attributes for the symbolic link object.
 * \param LinkTarget A pointer to a UNICODE_STRING that specifies the target name.
 * \return NTSTATUS Successful or errant status.
 * \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-zwcreatesymboliclinkobject
 */
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtCreateSymbolicLinkObject(
    _Out_ PHANDLE LinkHandle,
    _In_ ACCESS_MASK DesiredAccess,
    _In_ POBJECT_ATTRIBUTES ObjectAttributes,
    _In_ PCUNICODE_STRING LinkTarget
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwCreateSymbolicLinkObject(
    _Out_ PHANDLE LinkHandle,
    _In_ ACCESS_MASK DesiredAccess,
    _In_ POBJECT_ATTRIBUTES ObjectAttributes,
    _In_ PCUNICODE_STRING LinkTarget
    );

#endif

View code on GitHub

NtDoc

No description available.

NTinternals.net (undocumented.ntinternals.net)

pHandle

Handle to SymbolicLinkObject.

ObjectAttributes

Name of SymbolicLinkObject.

DestinationName

Name or path to destination object in Object Namespace.

See also