Dec 072017
DLL to get disk info from Visual Basic.
File DSKINF.ZIP from The Programmer’s Corner in
Category BASIC Language
DLL to get disk info from Visual Basic.
File Name File Size Zip Size Zip Type
DISKINFO.DLL 3453 2227 deflated
DSKSPACE.TXT 688 372 deflated
TPCREAD.ME 199 165 deflated

Download File DSKINF.ZIP Here

Contents of the DSKSPACE.TXT file

Here is the DLL, DiskInfo.DLL. It contains one function, also called
DiskInfo. The declaration is as follows:-

Declare Function DiskInfo Lib "DiskInfo.DLL" (ByVal DriveNum%,
ByVal DriveInfo%) As Long

DriveNum% is the drive that you want the figures for: 0=Default
Drive, 1=drive A, 2=B, 3=C etc.

DriveInfo% is the information you want: 1 = Free Space, 2 = Total
Space, 3 = Total Clusters, 4 = Available Clusters, 5 = Sectors per
Cluster, 6 = Bytes per Sector.

If you pass an incorrect DriveNum%, the function returns -1, if
there is an error related to DriveInfo% it returns -2. Otherwise
it returns either a number (of clusters/sectors) or a number of Bytes.


 December 7, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>