DRIVER_INFO_ENTRY - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTEXAPI_H
#if defined(SYSTEM_RUNTIME_REPORT)

/**
 * The DRIVER_INFO_ENTRY structure describes a single driver information entry.
 */
typedef struct _DRIVER_INFO_ENTRY
{
    //
    // Internal name of the driver from the resource section.
    //

    CHAR InternalName[DRIVER_REPORT_NAME_MAX_LENGTH];

    //
    // Hash algorithm used to calculate the image digest.
    //

    USHORT ImageHashAlgorithm;

    //
    // Hash algorithm used to calculate the thumbprint of the leaf certificate
    // that validates the entire image.
    //

    USHORT PublisherThumbprintHashAlgorithm;

    //
    // Offset from the start of the driver report to a buffer containing the
    // digest of the driver image on disk.
    //

    ULONG ImageHashOffset;

    //
    // Offset from the start of the driver report to a buffer containing the
    // thumbprint of the leaf certificate validating the entire image
    //

    ULONG PublisherThumbprintOffset;

    //
    // Number of times that this driver image has been loaded into the system.
    //

    USHORT NumberOfLoadingTimes;

    //
    // Size and Offset of a string indicating the OEM name stored in the
    // authenticated OPUS block of the image digital signature.
    // There is no OEM name for inbox Windows signed drivers. The size does *NOT*
    // include the NULL terminator (even though the string is NULL-terminated).
    //

    USHORT OemNameSize;
    ULONG OemNameOffset;

    //
    // Flags indicating various properties of the current driver image:
    //      - Unloaded - Set to 1 in case the driver is current unloaded.
    //
    //      - BootDriver - Set to 1 in case the image is a Boot Driver;
    //           0 otherwise (the image is a Runtime driver).
    //
    //      - HotPatch - Set to 1 in case the image can be also loaded as Hotpatch;
    //
    //      - Reserved - Reserved flags bits.
    //

    union
    {
        struct
        {
            USHORT Unloaded : 1;
            USHORT BootDriver : 1;
            USHORT HotPatch : 1;
            USHORT Reserved : 13;
        } DUMMYSTRUCTNAME;
        USHORT AsUInt16;
    } Flags;

    USHORT Padding;
} DRIVER_INFO_ENTRY, *PDRIVER_INFO_ENTRY;

#endif
#endif

View code on GitHub

NtDoc

No description available.