Bewerken

Delen via


FltIsDirectory function (fltkernel.h)

A minifilter driver calls the FltIsDirectory routine to determine whether a given file object represents a directory.

Syntax

NTSTATUS FLTAPI FltIsDirectory(
  [in]  PFILE_OBJECT  FileObject,
  [in]  PFLT_INSTANCE Instance,
  [out] PBOOLEAN      IsDirectory
);

Parameters

[in] FileObject

Pointer to an already opened file object.

[in] Instance

Opaque instance pointer for the instance associated with this file object.

[out] IsDirectory

Pointer to a caller-supplied Boolean variable. On return, this variable receives TRUE if the file object represents a directory, FALSE otherwise.

Return value

FltIsDirectory returns STATUS_SUCCESS or an appropriate NTSTATUS value, such as the following:

Return code Description
STATUS_NOT_SUPPORTED
This error code is returned if the file system does not support stream contexts. Note that starting with Windows Vista, FltIsDirectory will return directory information even for file systems that do not support stream contexts.

Remarks

FltIsDirectory retrieves the desired information from the filter manager's internal stream context manager. The filter manager caches this information for future queries on this stream.

Note  This routine can only be called on an opened file object.
 

Requirements

Requirement Value
Minimum supported client This routine is available on Microsoft Windows 2000 Update Rollup 1 for SP4, Windows XP SP2, Microsoft Windows Server 2003 SP1, and later. Note that this routine is not available on Windows 2000 SP4 or earlier.
Target Platform Universal
Header fltkernel.h (include FltKernel.h)
Library Fltmgr.lib
DLL Fltmgr.sys
IRQL <= APC_LEVEL

See also

FsRtlSupportsPerStreamContexts