BOOLEAN
ExAcquireResourceExclusiveLite(
IN PERESOURCE Resource,
IN BOOLEAN Wait
);
ExAcquireResourceExclusive acquires the given resource for exclusive access by the calling thread.
ExAcquireResourceExclusiveLite returns TRUE if the resource is acquired. This routine returns FALSE if the input Wait is FALSE and exclusive access cannot be granted immediately.
For better performance, call ExTryToAcquireResourceExclusiveLite, rather than calling ExAcquireResourceExclusiveLite with Wait set to FALSE.
Callers of ExAcquireResourceExclusiveLite must be running at IRQL < DISPATCH_LEVEL.
ExAcquireResourceSharedLite, ExGetExclusiveWaiterCount, ExGetSharedWaiterCount, ExInitializeResourceLite, ExReinitializeResourceLite, ExIsResourceAcquiredExclusiveLite, ExReleaseResourceForThreadLite, ExTryToAcquireResourceExclusiveLite