ExReleaseResourceAndLeaveCriticalRegion - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

VOID ExReleaseResourceAndLeaveCriticalRegion(
  PERESOURCE Resource
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-exreleaseresourceandleavecriticalregion)

Description

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

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.

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.

See also

ERESOURCE

ExEnterCriticalRegionAndAcquireResourceExclusive