home *** CD-ROM | disk | FTP | other *** search
-
- #include <windows.h>
- #include <dos.h>
-
- int FAR PASCAL LibMain(HANDLE hModule, WORD wDataSeg, WORD cbHeapSize, LPSTR lpszCmdLine)
- {
- return TRUE;
- }
-
-
-
-
-
- long FAR PASCAL DSKFRE(int drv)
- {
- struct diskfree_t drive;
- union longs {
- unsigned long screw;
- long screw2;
- } it;
-
-
- _dos_getdiskfree( drv,&drive );
-
- it.screw=(unsigned long) drive.bytes_per_sector*drive.sectors_per_cluster*drive.avail_clusters/1024;
- return(it.screw2 );
- }
-