Platform SDK: Files and I/O

FINDEX_SEARCH_OPS

The FINDEX_SEARCH_OPS enumeration type defines values that are used with the FindFirstFileEx function to specify the type of filtering to perform.

typedef enum _FINDEX_SEARCH_OPS { 
  FindExSearchNameMatch, 
  FindExSearchLimitToDirectories, 
  FindExSearchLimitToDevices, 
} FINDEX_SEARCH_OPS ; 
Enumerator Value Meaning
FindExSearchNameMatch Search for a file that matches the specified file name. Note that lpSearchFilter parameter of FindFirstFileEx must be NULL when this search operation is used.
FindExSearchLimitToDevices This filtering type is not available.

For information on enumerating devices, see Device Interfaces.

FindExSearchLimitToDirectories This is an advisory flag.

If the file system supports directory filtering, the function searches for a "file" that matches the specified file name and that is a directory.

If the file system does not support directory filtering, this flag is silently ignored.

The lpSearchFilter parameter of FindFirstFileEx must be NULL when this search operation is used.

If you want directory filtering, use this flag on all file systems, but be sure to examine the file attribute data stored into the *lpFindFileData parameter of FindFirstFileEx to determine whether the function has indeed returned a handle to a directory.


Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Unsupported.
  Header: Declared in Winbase.h; include Windows.h.

See Also

File I/O Overview, File I/O Enumeration Types, FindFirstFileEx