FltSupportsFileContexts function

The FltSupportsFileContexts routine determines whether the file system supports file contexts for a given file.

Syntax

BOOLEAN FltSupportsFileContexts(
  _In_ PFILE_OBJECT FileObject
);

Parameters

FileObject

File object pointer for the file. This parameter is required and cannot be NULL.

Return Value

FltSupportsFileContexts returns TRUE if the file system supports file contexts for the file object; FALSE otherwise.

Remarks

Minifilter drivers call FltSupportsFileContexts to determine whether the underlying file system inherently supports file contexts for the file that is represented by a given file object.

Note that a file system might support file contexts for some types of files but not for others. For example, NTFS and FAT do not support file contexts for paging files.

To allocate a new context, call FltAllocateContext.

To delete a file context, call FltDeleteFileContext or FltDeleteContext.

To get the file context for a file object, call FltGetFileContext.

To set a file context, call FltSetFileContext.

To decrement the reference count on a context, call FltReleaseContext.

Requirements

   
Windows Driver kit version
Target platform Universal
Minimum KMDF version
Minimum UMDF version
Header fltkernel.h (include Fltkernel.h)
Library
IRQL <= APC_LEVEL
DDI compliance rules

See Also

FltAllocateContext
FltDeleteContext
FltDeleteFileContext
FltGetFileContext
FltReleaseContext
FltSetFileContext
FltSupportsFileContextsEx

Send comments about this topic to Microsoft