Detecting file system


how can I detect the file system of a scsi device (HDD, CD-ROM, …).
I searched the win32api.hlp and could not find anything appropriate.


Two ways.

The first easy, find out what drive letter the device is associated with and use standard Microsoft functions, such as GetVolumeInformation().

If there isn’t a drive letter. You’ll need to get your hands dirty and read the raw sectors on the media and see if it looks like a particular filesystem! For example, check for UDF anchors or ISO9660 PVD info.

Hi november26,

GetVolumeInformation() did it, thank you!