typedef struct _VI_DEADLOCK_RESOURCE
{
    VI_DEADLOCK_RESOURCE_TYPE Type;
    unsigned long NodeCount : 16;
    unsigned long RecursionCount : 16;
    void *ResourceAddress;
    VI_DEADLOCK_THREAD *ThreadOwner;
    LIST_ENTRY ResourceList;
    union
    {
        LIST_ENTRY HashChainList;
        LIST_ENTRY FreeListEntry;
    };
    void *StackTrace[8];
    void *LastAcquireTrace[8];
    void *LastReleaseTrace[8];
} VI_DEADLOCK_RESOURCE, *PVI_DEADLOCK_RESOURCE;