The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


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.

Last Update: 2012-Okt-20