FltReleaseResource routine

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

Syntax


VOID FltReleaseResource(
  _Inout_ PERESOURCE Resource
);

Parameters

Resource [in, out]

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 KeLeaveCriticalRegion or FsRtlExitFileSystem 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 in the Kernel Architecture Design Guide.

Requirements

Target platform

Universal

Version

This routine is available on Microsoft Windows XP SP2, Microsoft Windows Server 2003 SP1, and later.

Header

Fltkernel.h (include Fltkernel.h)

Library

FltMgr.lib

DLL

Fltmgr.sys

IRQL

<= DISPATCH_LEVEL

See also

ExDeleteResourceLite
ExInitializeResourceLite
ExReinitializeResourceLite
ExReleaseResourceLite
FltAcquireResourceExclusive
FltAcquireResourceShared
FsRtlExitFileSystem
KeLeaveCriticalRegion

 

 

Send comments about this topic to Microsoft

Show: