ERESOURCE_THREAD
ExGetCurrentResourceThread(
);
ExGetCurrentResourceThread identifies the current thread for a subsequent call to ExReleaseResourceForThreadLite.
ExGetCurrentResourceThread returns the thread ID of the current thread.
Callers of ExGetCurrentResourceThread must be running at IRQL <= DISPATCH_LEVEL.
ExIsResourceAcquiredExclusiveLite, ExIsResourceAcquiredSharedLite, ExReleaseResourceForThreadLite