DECLARE SHORT GetVolumeInformation IN kernel32; STRING lpRootPathName, INTEGER lpVolumeNameBuffer,; INTEGER nVolumeNameSize, INTEGER @lpVolumeSerialNumber,; INTEGER lpMaximumComponentLength, INTEGER lpFlags,; INTEGER lpFileSystemNameBuffer, INTEGER nFileSystemNameSize cSerial = 0 IF GetVolumeInformation('c:\', 0,0, @cSerial, 0,0,0,0) <> 0 ? "Volume Serial Number:", cSerial ENDIFThe GetVolumeInformation is declared in a simplified way in the code above.