BcdGetElementDataWithFlags - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTBCD_H

/**
 * The BcdGetElementDataWithFlags routine reads and converts registry-backed element data according to
 * BcdFlags. A missing BufferSize or NULL Buffer with nonzero input size returns STATUS_INVALID_PARAMETER
 * before object access. Do not interpret uninitialized storage after failure or assume all element formats
 * have the same layout.
 *
 * \param BcdObjectHandle BCD object handle.
 * \param BcdElement BCD element data type to query.
 * \param BcdFlags Flags controlling element data conversion.
 * \param Buffer Optional buffer receiving converted element data.
 * \param BufferSize Input capacity and output required size in bytes.
 * \return NTSTATUS Successful or errant status.
 */
NTSYSAPI
NTSTATUS
NTAPI
BcdGetElementDataWithFlags(
    _In_ HANDLE BcdObjectHandle,
    _In_ ULONG BcdElement, // BCD_ELEMENT_DATATYPE
    _In_ BCD_FLAGS BcdFlags,
    _Out_writes_bytes_opt_(*BufferSize) PVOID Buffer,
    _Inout_ PULONG BufferSize
    );

#endif

View code on GitHub

NtDoc

No description available.