Skip to content

Latest commit

 

History

History
97 lines (71 loc) · 3.2 KB

nf-winternl-ntquerymultiplevaluekey.md

File metadata and controls

97 lines (71 loc) · 3.2 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winternl.NtQueryMultipleValueKey
NtQueryMultipleValueKey function (winternl.h)
Retrieves values for the specified multiple-value key.
NtQueryMultipleValueKey
NtQueryMultipleValueKey function [Windows API]
base.ntquerymultiplevaluekey
winprog.ntquerymultiplevaluekey
winternl/NtQueryMultipleValueKey
winprog\ntquerymultiplevaluekey.htm
winprog
fe78446c-b936-4ded-846a-f3ca26eff06e
12/05/2018
NtQueryMultipleValueKey, NtQueryMultipleValueKey function [Windows API], base.ntquerymultiplevaluekey, winprog.ntquerymultiplevaluekey, winternl/NtQueryMultipleValueKey
winternl.h
Windows
ntdll.lib
ntdll.dll
Windows
19H1
NtQueryMultipleValueKey
winternl/NtQueryMultipleValueKey
c++
APIRef
kbSyntax
DllExport
ntdll.dll
NtQueryMultipleValueKey

NtQueryMultipleValueKey function

-description

[This function may be changed or removed from Windows without further notice.]

Retrieves values for the specified multiple-value key.

-parameters

-param KeyHandle [in]

A handle to the key for which to retrieve values. The handle must be opened with the KEY_QUERY_VALUE access right.

-param ValueEntries [in, out]

A pointer to an array of [KEY_VALUE_ENTRY] structures containing the names of values to retrieve.

-param EntryCount [in]

The number of elements in the ValueEntries array.

-param ValueBuffer [out]

A pointer to a buffer to receive the values.

-param BufferLength [in, out]

A pointer to a variable that contains the size of the buffer at ValueBuffer, in bytes. When the function returns, the BufferLength parameter contains the number of bytes written to the buffer at ValueBuffer.

-param RequiredBufferLength [out, optional]

A pointer to a variable to receive the number of bytes required for all of the values to be returned by the function. This parameter can be NULL.

-returns

Returns an NTSTATUS or error code.

If the buffer is too small to hold the information to be retrieved, the function returns STATUS_BUFFER_OVERFLOW and, if the RequiredBufferLength parameter is specified, sets it to the buffer size required.

The forms and significance of NTSTATUS error codes are listed in the Ntstatus.h header file available in the WDK, and are described in the WDK documentation.

-remarks

This function has no associated header file. You can also use the LoadLibrary and GetProcAddress functions to dynamically link to Ntdll.dll.

-see-also

Registry Key Security and Access Rights