ExReleaseResourceAndLeaveCriticalRegion function (wdm.h)
The ExReleaseResourceAndLeaveCriticalRegion routine first releases the specified resource, and then leaves the critical region.
Syntax
void ExReleaseResourceAndLeaveCriticalRegion(
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2003 SP1 |
Header | wdm.h |
IRQL | <= APC_LEVEL |
DDI compliance rules | CriticalRegions(wdm), HwStorPortProhibitedDDIs(storport) |