procedure TScandisk.Execute;<br>var <br> name: CHAR;<br> drvname: string;<br> CDtype:UINT;<br><br>begin<br> GetMem(volname, 255);<br> GetMem(filesysname, 100);<br> for name :='D' to 'Z' do//&Ntilde;&shy;&raquo;·&frac14;ì&sup2;&acirc;A&iexcl;&laquo;Z<br> begin<br> drvname := name + ':';<br> CDtype := GetDriveType(PCHAR(@drvname[1])); //&raquo;&ntilde;&micro;&Atilde;&acute;&Aring;&Aring;&Igrave;&Agrave;à&ETH;&Iacute;<br> if (CDtype = DRIVE_FIXED) then<br> begin<br><br>.... <br><br> end;<br> end;<br> FreeMem(volname);<br> FreeMem(filesysname)<br><br>end;<br>//other type <br> DRIVE_UNKNOWN = 0;<br> {$EXTERNALSYM DRIVE_UNKNOWN}<br> DRIVE_NO_ROOT_DIR = 1;<br> {$EXTERNALSYM DRIVE_NO_ROOT_DIR}<br> DRIVE_REMOVABLE = 2;<br> {$EXTERNALSYM DRIVE_REMOVABLE}<br> DRIVE_FIXED = 3;<br> {$EXTERNALSYM DRIVE_FIXED}<br> DRIVE_REMOTE = 4;<br> {$EXTERNALSYM DRIVE_REMOTE}<br> DRIVE_CDROM = 5;<br> {$EXTERNALSYM DRIVE_CDROM}<br> DRIVE_RAMDISK = 6;<br> {$EXTERNALSYM DRIVE_RAMDISK}<br><br>