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....



DiskFreeExtended


Unit:SDL_filesys
Class:none
Declaration:function DiskFreeExtended (Drive: Byte): comp;

The function DiskFreeExtended returns the number of available bytes on the disk Drive. The parameter Drive may assume values between 0 and 25 (for disk A to disk Z). Note that this function is an extended version of the DiskFree routine (unit SysUtils), which fails if the disk exceeds more than 4 GB. Please mind the changed definition of the drive specification (as compared to DiskFree).

DiskFreeExtended returns a value of -1 if the number of free bytes cannot determined for some reason.

Hint: Please note that the function DiskFreeExtended is not available under C++Builder, since the comp type is not supported as a simple type.



Last Update: 2012-Oct-20