BcdEnumerateObjects - NtDoc

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

/**
 * The BcdEnumerateObjects routine enumerates matching object GUID/description pairs into caller storage.
 * BufferSize is bytes, ObjectCount is elements. NULL Buffer requires input size zero; descriptor version
 * zero is rejected. The x64 output contains 24-byte object records plus 8-byte descriptions referenced
 * inside the same buffer. Retry on STATUS_INFO_LENGTH_MISMATCH; retain the allocation while using embedded
 * pointers.
 *
 * \param BcdStoreHandle Handle to the BCD store.
 * \param BcdEnumDescriptor Descriptor selecting objects to enumerate.
 * \param Buffer Optional buffer receiving object records and descriptions.
 * \param BufferSize Input capacity and output required size in bytes.
 * \param ObjectCount Receives the number of objects.
 * \return NTSTATUS Successful or errant status.
 */
NTSYSAPI
NTSTATUS
NTAPI
BcdEnumerateObjects(
    _In_ HANDLE BcdStoreHandle,
    _In_ PBCD_OBJECT_DESCRIPTION BcdEnumDescriptor,
    _Out_writes_bytes_opt_(*BufferSize) PVOID Buffer, // BCD_OBJECT[]
    _Inout_ PULONG BufferSize,
    _Out_ PULONG ObjectCount
    );

#endif

View code on GitHub

NtDoc

No description available.