GET_BCD_OBJECT_TYPE - NtDoc

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

/**
 * Macro to extract the BCD (Boot Configuration Data) object type from a given DataType value.
 * The macro shifts the input DataType 28 bits to the right and masks the result with 0xF,
 * effectively extracting the upper 4 bits, which represent the BCD object type.
 * \param DataType The value containing the BCD object type in its upper 4 bits.
 * \return The extracted BCD_OBJECT_TYPE value.
 */
#define GET_BCD_OBJECT_TYPE(DataType) \
    ((BCD_OBJECT_TYPE)(((((ULONG)(DataType))) >> 28) & 0xF))

#endif

View code on GitHub

NtDoc

No description available.