#ifndef _NTBCD_H
/**
* The BcdGetElementData routine reads an element through BcdGetElementDataWithFlags with flags zero.
* BufferSize is a required input/output byte count; NULL Buffer is valid only with initial size zero.
* Returned representation depends on the element format, not solely the registry value type.
*
* \param BcdObjectHandle BCD object handle.
* \param BcdElement BCD element data type to query.
* \param Buffer Optional buffer receiving element data.
* \param BufferSize Input capacity and output required size in bytes.
* \return NTSTATUS Successful or errant status.
*/
NTSYSAPI
NTSTATUS
NTAPI
BcdGetElementData(
_In_ HANDLE BcdObjectHandle,
_In_ ULONG BcdElement, // BCD_ELEMENT_DATATYPE
_Out_writes_bytes_opt_(*BufferSize) PVOID Buffer,
_Inout_ PULONG BufferSize
);
View code on GitHubNo description available.