Skip to content

Latest commit

 

History

History
95 lines (62 loc) · 3.62 KB

nf-ntifs-fsrtllookupperfilecontext.md

File metadata and controls

95 lines (62 loc) · 3.62 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ntifs.FsRtlLookupPerFileContext
FsRtlLookupPerFileContext function (ntifs.h)
The FsRtlLookupPerFileContext routine returns a pointer to a FSRTL_PER_FILE_CONTEXT object that is associated with a specified file.
ifsk\fsrtllookupperfilecontext.htm
ifsk
04/16/2018
FsRtlLookupPerFileContext function
FsRtlLookupPerFileContext, FsRtlLookupPerFileContext routine [Installable File System Drivers], fsrtlref_ab859bb7-ea43-4d55-ab37-feebddd270ff.xml, ifsk.fsrtllookupperfilecontext, ntifs/FsRtlLookupPerFileContext
ntifs.h
FltKernel.h, Ntifs.h
Universal
Windows Vista
NtosKrnl.lib
NtosKrnl.exe
<= APC_LEVEL
Windows
FsRtlLookupPerFileContext
ntifs/FsRtlLookupPerFileContext
APIRef
kbSyntax
DllExport
NtosKrnl.exe
FsRtlLookupPerFileContext

FsRtlLookupPerFileContext function

-description

The FsRtlLookupPerFileContext routine returns a pointer to a FSRTL_PER_FILE_CONTEXT object that is associated with a specified file.

-parameters

-param PerFileContextPointer [in]

A pointer to an opaque pointer that is used by the file system runtime library (FSRTL) package to track file contexts. To retrieve this pointer from a file object, use the FsRtlGetPerFileContextPointer macro.

-param OwnerId [in, optional]

A pointer to a filter driver-allocated variable that uniquely identifies the owner of the per-file context structure. The format of this variable is filter driver-specific. This parameter is optional, but must be non-NULL if InstanceId is non-NULL.

-param InstanceId [in, optional]

A pointer to a filter driver-allocated variable that can be used to distinguish among per-file context structures that are created by the same filter driver. The format of this variable is filter driver-specific. This parameter is optional.

-returns

A pointer to the first FSRTL_PER_FILE_CONTEXT structure that matches the OwnerId and InstanceId, if specified, or NULL if no match is found or the file system does not support per-file contexts.

-remarks

By not specifying OwnerID and InstanceId, a filter driver can search for the first context that is associated with a file.

If the file system does not support per-file context objects, NULL is returned. Use the FsRtlSupportsPerFileContexts macro to determine whether a file system supports per-file context objects.

-see-also

FSRTL_PER_FILE_CONTEXT

FsRtlGetPerFileContextPointer

FsRtlInsertPerFileContext

FsRtlRemovePerFileContext

Tracking Per-File Context in a Legacy File System Filter Driver