FltSupportsFileContexts - NtDoc

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

BOOLEAN FLTAPI FltSupportsFileContexts(
  [in] PFILE_OBJECT FileObject
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

FltSupportsFileContexts function

Description

The FltSupportsFileContexts routine determines whether the file system supports file contexts for a given file. (See also FltSupportsFileContextsEx.)

Parameters

FileObject [in]

Pointer to the file object that represents the file whose file context support is being queried. 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 the specified FileObject without having to allocate a context and attempt to set it. If a context type isn't supported on a file, then the minifilter cannot attach a context to that file.

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.

For more information about contexts, see About minifilter contexts.

See also

FltAllocateContext

FltDeleteContext

FltDeleteFileContext

FltGetFileContext

FltReleaseContext

FltSetFileContext

FltSupportsFileContextsEx