#ifndef _NTBCD_H
/**
* The BcdEnumerateElementsWithFlags function enumerates the elements present in a specified BCD object, using additional flags to control enumeration behavior.
*
* \param BcdObjectHandle Handle to the BCD object whose elements are to be enumerated.
* \param BcdFlags Flags that control the enumeration behavior (see BCD_FLAGS).
* \param Buffer Optional pointer to a buffer that receives an array of BCD_ELEMENT structures. If this parameter is NULL, the function will return the required buffer size in BufferSize.
* \param BufferSize On input, specifies the size of the buffer in bytes. On output, receives the required or actual size of the buffer.
* \param ElementCount Receives the number of elements returned in the buffer.
* \return NTSTATUS Successful or errant status.
*/
NTSYSAPI
NTSTATUS
NTAPI
BcdEnumerateElementsWithFlags(
_In_ HANDLE BcdObjectHandle,
_In_ BCD_FLAGS BcdFlags,
_Out_writes_bytes_opt_(*BufferSize) PVOID Buffer, // BCD_ELEMENT[]
_Inout_ PULONG BufferSize,
_Out_ PULONG ElementCount
);
View code on GitHubNo description available.