Unit: | SDL_filesys | Class: | none | Declaration: | function DiskIsReadOnly (Drive: byte): boolean;
|
The function DiskIsReadOnly returns a TRUE value if the disk specified by the parameter Drive is read-only. The parameter Drive is the number of the drive to be tested with drive A: having a number of zero, drive B: of one, and so on (Drive = DrvChar-ord('A') ).
Hint: |
Please note that the drive is actually tested by trying to create a file on the drive. As an more powerful alternative the function GetDiskDriveType can be used. |
|