Expand Minimize

ExIsResourceAcquiredLite routine

The ExIsResourceAcquiredLite routine returns whether the current thread has access (either shared or exclusive) to a given resource.

Syntax


ULONG ExIsResourceAcquiredLite(
  _In_ PERESOURCE Resource
);

Parameters

Resource [in]

A pointer to the resource to be queried.

Return value

ExIsResourceAcquiredLite returns the number of times the caller has acquired the given resource for shared or exclusive access.

Remarks

The system considers exclusive access to be a subset of shared access. Therefore, a thread that has exclusive access to a resource also has shared access to the resource.

Requirements

Target platform

Desktop

Version

Available starting with Windows 2000.

Header

Wwdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

HwStorPortProhibitedDDIs

See also

ExAcquireResourceSharedLite
ExAcquireSharedStarveExclusive
ExAcquireSharedWaitForExclusive
ExIsResourceAcquiredExclusiveLite
ExIsResourceAcquiredSharedLite

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft