NtLoadKey3 - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTREGAPI_H
#if (PHNT_VERSION >= PHNT_WINDOWS_10_20H1)

// rev
/**
 * Loads a registry key from a file with extended parameters.
 *
 * \param[in] TargetKey A pointer to an OBJECT_ATTRIBUTES structure that specifies the target key.
 * \param[in] SourceFile A pointer to an OBJECT_ATTRIBUTES structure that specifies the source file.
 * \param[in] Flags The options to use when loading the key.
 * \param[in, optional] ExtendedParameters An 8-byte-aligned array of 16-byte CM_EXTENDED_PARAMETER entries; ignored when the count is zero.
 * \param[in] ExtendedParameterCount Number of entries, 0 through 3. Each supported parameter type may appear only once.
 * \param[in, optional] DesiredAccess The access mask that specifies the desired access rights.
 * \param[out, optional] RootHandle A pointer to a handle that receives the root handle.
 * \param[in, reserved] Reserved Reserved.
 * \return NTSTATUS Successful or errant status.
 */
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtLoadKey3(
    _In_ POBJECT_ATTRIBUTES TargetKey,
    _In_ POBJECT_ATTRIBUTES SourceFile,
    _In_ ULONG Flags,
    _In_reads_opt_(ExtendedParameterCount) PCM_EXTENDED_PARAMETER ExtendedParameters,
    _In_ ULONG ExtendedParameterCount,
    _In_opt_ ACCESS_MASK DesiredAccess,
    _Out_opt_ PHANDLE RootHandle,
    _Reserved_ PVOID Reserved
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwLoadKey3(
    _In_ POBJECT_ATTRIBUTES TargetKey,
    _In_ POBJECT_ATTRIBUTES SourceFile,
    _In_ ULONG Flags,
    _In_reads_opt_(ExtendedParameterCount) PCM_EXTENDED_PARAMETER ExtendedParameters,
    _In_ ULONG ExtendedParameterCount,
    _In_opt_ ACCESS_MASK DesiredAccess,
    _Out_opt_ PHANDLE RootHandle,
    _Reserved_ PVOID Reserved
    );

#endif

View code on GitHub

NtDoc

No description available.