#ifndef _NTBCD_H
/**
* The BcdEnumerateElementTypes routine enumerates 32-bit BCD element type values. BufferSize is bytes and
* becomes 4 times ElementCount. A short buffer can receive a prefix before STATUS_BUFFER_TOO_SMALL
* (0xC0000023); the returned count is not proof that every element was copied. NULL Buffer requires input
* size zero.
*
* \param BcdObjectHandle BCD object handle.
* \param Buffer Optional buffer receiving element data types.
* \param BufferSize Input capacity and output required size in bytes.
* \param ElementCount Receives the number of elements.
* \return NTSTATUS Successful or errant status.
*/
NTSYSAPI
NTSTATUS
NTAPI
BcdEnumerateElementTypes(
_In_ HANDLE BcdObjectHandle,
_Out_writes_bytes_opt_(*BufferSize) PVOID Buffer, // BCD_ELEMENT_DATATYPE[]
_Inout_ PULONG BufferSize,
_Out_ PULONG ElementCount
);
View code on GitHubNo description available.