Export (0) Print
Expand All
Expand Minimize

ExReleaseResourceAndLeaveCriticalRegion routine

The ExReleaseResourceAndLeaveCriticalRegion routine first releases the specified resource, and then leaves the critical region.

Syntax


VOID ExReleaseResourceAndLeaveCriticalRegion(
  _Inout_  PERESOURCE Resource
);

Parameters

Resource [in, out]

A pointer to the resource to release. This parameter should be the same ERESOURCE pointer that the caller supplied as a parameter in the previous call to the ExEnterCriticalRegionAndAcquireResourceExclusive routine that acquired the resource.

Return value

None.

Remarks

After a driver calls the ExEnterCriticalRegionAndAcquireResourceExclusive method to enter a critical region and acquire a resource for exclusive access, the driver must call ExReleaseResourceAndLeaveCriticalRegion to release the resource and exit the critical region.

For more information about using an ERESOURCE structure to synchronize exclusive access to a resource, see Introduction to ERESOURCE Routines. For more information about entering and leaving a critical region, see Critical Regions and Guarded Regions.

Requirements

Version

Available starting with Windows Vista and Windows Server 2003 with SP1.

Header

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

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

See also

ERESOURCE
ExEnterCriticalRegionAndAcquireResourceExclusive

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft