FltReleaseResource function (fltkernel.h)

The FltReleaseResource routine releases a specified resource owned by the current thread.

Syntax

VOID FLTAPI FltReleaseResource(
  [in/out] PERESOURCE Resource
);

Parameters

[in/out] Resource

Pointer to the opaque ERESOURCE structure for the resource to be released.

Return value

None.

Remarks

FltReleaseResource releases a resource that was previously acquired by calling FltAcquireResourceExclusive or FltAcquireResourceShared.

FltReleaseResource is a wrapper for ExReleaseResourceLite that reenables normal kernel APC delivery.

Because FltReleaseResource reenables normal kernel APC delivery, it is not necessary to call KeEnterCriticalRegion or FsRtlEnterFileSystem after calling FltReleaseResource.

To acquire a resource for exclusive access, call FltAcquireResourceExclusive.

To acquire a resource for shared access, call FltAcquireResourceShared.

To delete a resource from the system's resource list, call ExDeleteResourceLite.

To initialize a resource for reuse, call ExReinitializeResourceLite.

For more information about ERESOURCE structures, see Introduction to ERESOURCE Routines.

Requirements

Requirement Value
Minimum supported client Windows XP SP2
Minimum supported server Windows Server 2003 SP1
Header fltkernel.h
Library FltMgr.lib
IRQL IRQL <= DISPATCH_LEVEL