Click or drag to resize

Shell32GetFileInfo Method

Retrieves information about an object in the file system, such as a file, folder, directory, or drive root.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static Shell32FileInfo GetFileInfo(
	string filePath,
	FileAttributes attributes,
	Shell32FileAttributes fileAttributes,
	bool continueOnException
)

Parameters

filePath
Type: SystemString
The path to the file system object which should not exceed the maximum path length. Both absolute and relative paths are valid.
attributes
Type: System.IOFileAttributes
A FileAttributes attribute.
fileAttributes
Type: Alphaleonis.Win32.FilesystemShell32FileAttributes
One ore more Shell32FileAttributes attributes.
continueOnException
Type: SystemBoolean

suppress any Exception that might be thrown as a result from a failure,

such as ACLs protected directories or non-accessible reparse points.

Return Value

Type: Shell32FileInfo
A Shell32FileInfo struct instance.
Remarks

You should call this function from a background thread.

Failure to do so could cause the UI to stop responding.

Unicode path are supported.

See Also