ExTryToAcquireResourceExclusiveLite

BOOLEAN
    ExTryToAcquireResourceExclusiveLite(

        IN PERESOURCE  Resource
        );

ExTryToAcquireResourceExclusiveLite attempts to acquire the given resource for exclusive access.

Parameters

Resource
Points to the resource to be acquired.

Return Value

ExTryToAcquireResourceExclusiveLite returns TRUE if the given resource has been acquired for the caller.

Comments

Use ExAcquireResourceExclusiveLite if the caller must have exclusive access to the resource before it can do further useful work.

Callers of ExTryToAcquireResourceExclusiveLite must be running at IRQL < DISPATCH_LEVEL.

See Also

ExAcquireResourceExclusiveLite, ExAcquireSharedWaitForExclusive, ExIsResourceAcquiredExclusiveLite