THREAD_LOCK_OWNERSHIP - NtDoc

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

// rev: RtlAbPostRelease / ReleaseAllUserModeAutoBoostLockHandles
/**
 * Input for ThreadUpdateLockOwnership, reconstructed from AMD64 build 26100.9549.
 * The input is 16 bytes. The low 32 bits of LockEntryIndex identify the user-mode
 * AutoBoost entry to release. Reserved must be zero. The target must be the current
 * thread and the handle must grant THREAD_SET_INFORMATION.
 */
typedef struct _THREAD_LOCK_OWNERSHIP
{
    union
    {
        ULONG64 LockEntryIndex;
        ULONG SrwLock[1]; // Legacy alias for the low 32 bits of LockEntryIndex.
    };
    ULONG Reserved;
} THREAD_LOCK_OWNERSHIP, *PTHREAD_LOCK_OWNERSHIP;

#endif

View code on GitHub

NtDoc

No description available.