QueryFileSystem method (ILEADRasterTwain)

Visual Basic example

Visual C++ example

 

Syntax

short QueryFileSystem(FILESYSTEM_MSG FileMsg)

Overview

Refer to Getting or Setting TWAIN File System Information

Remarks

Performs certain tasks, or retrieves certain information, depending on the value of the FileMsg parameter.

This method is only valid for TWAIN file systems for digital cameras.

If the FileMsg parameter contains one of the following flags:

FILESYSTEM_MSG_CHANGEDIRECTORY

FILESYSTEM_MSG_CREATEDIRECTORY

FILESYSTEM_MSG_DELETE

FILESYSTEM_MSG_FORMATMEDIA

FILESYSTEM_MSG_RENAME

FILESYSTEM_MSG_COPY

the sub-properties of the FileSystemInfo property must contain the proper information before calling this method. This method will use the provided information to change settings within the TWAIN files system.

If the FileMsg parameter contains one of the following flags:

FILESYSTEM_MSG_GETCLOSE

FILESYSTEM_MSG_GETFIRSTFILE

FILESYSTEM_MSG_GETINFO

FILESYSTEM_MSG_GETNEXTFILE

This method, will update the appropriate sub-properties of the FileSystemInfo property with the corresponding information.

If the FileMsg parameter contains the following flag:

FILESYSTEM_MSG_AUTOMATICCAPTUREDIRECTORY

This method will use the information stored within the appropriate sub-properties of the FileSystemInfo property and will update the appropriate sub-properties of the FileSystemInfo property with any appropriate information.

For more information on the available TWAIN file system information, refer to the TW_FILESYSTEM structure, in the TWAIN 1.9 Specification, available at www.twain.org.

See Also

Elements

FileSystemInfo property

Topics

TWAIN Functionality: Getting or Setting TWAIN File System Information