DECLARE SHORT GetVolumeInformation IN Win32API; STRING @lpRootPathName,; STRING @lpVolumeNameBuffer,; INTEGER nVolumeNameSize,; INTEGER @lpVolumeSerialNumber,; INTEGER @lpMaximumComponentLength,; INTEGER @lpFileSystemFlags,; STRING @lpFileSystemNameBuffer,; INTEGER nFileSystemNameSizeHere's what each of those parameters are:
#DEFINE FS_CASE_SENSITIVE 1 && Supports case sensitive file names #DEFINE FS_CASE_IS_PRESERVED 2 && Case is stored on disk #DEFINE FS_UNICODE_STORED_ON_DISK 4 && System supports UNICODE #DEFINE FS_PERSISTENT_ACLS 8 && Supports and efforces ACLs (NTFS file systems) #DEFINE FS_FILE_COMPRESSION 16 && Supports file compression #DEFINE FS_VOL_IS_COMPRESSED 32768 && Volume is compressed.pFileSystemNameBuffer receives the file system name (FATS, NTFS, etc.)
FUNCTION ValToHex * Converts a value to a hex string LPARAMETER pnvalue LOCAL lchexstring, lnmask, lnvalue, lni, lcresult, lnnybble lnvalue = pnvalue lnmask = 15 lchexstring = '0123456789ABCDEF' lcresult = "" FOR lni = 1 TO 8 lnnybble = BITAND(lnvalue, lnmask) lcresult = SUBSTR(lchexstring, lnnybble + 1, 1) + lcresult lnvalue = BITRSHIFT(lnvalue, 4) NEXT RETURN lcresulthth,