Retrieving File Type Information

The GetFileType function retrieves the type of a file: disk, character (such as a console), pipe, or unknown. The GetBinaryType function determines whether a file is executable, and if so, the type of executable file it is. See GetBinaryType for a list of the supported executable types.