FltAcquireResourceShared - NtDoc

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

VOID FLTAPI FltAcquireResourceShared(
  [in/out] PERESOURCE Resource
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-fltkernel-fltacquireresourceshared)

Description

The FltAcquireResourceShared routine acquires the given resource for shared access by the calling thread.

Parameters

Resource [in/out]

Pointer to an opaque ERESOURCE structure. This structure must be allocated by the caller from nonpaged pool and initialized by calling ExInitializeResourceLite or ExReinitializeResourceLite.

Return value

None.

Remarks

FltAcquireResourceShared routine acquires the given resource for shared access by the calling thread.

Whether or when the caller is given shared access to the given resource depends on the following:

FltAcquireResourceShared is a wrapper for ExAcquireResourceSharedLite that disables normal kernel APC delivery.

Because FltAcquireResourceShared disables normal kernel APC delivery, it is not necessary to call KeEnterCriticalRegion or FsRtlEnterFileSystem before calling FltAcquireResourceShared.

To release the resource after it is acquired, call FltReleaseResource. Every successful call to FltAcquireResourceShared must be matched by a subsequent call to FltReleaseResource.

To acquire a resource for exclusive access, call FltAcquireResourceExclusive.

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.