19991025-19:46 GMT+1 Victor Szel <info@szelvesz.hu>

This commit is contained in:
Viktor Szakats
1999-10-25 18:01:03 +00:00
parent a73010a134
commit 68770ce556
3 changed files with 4046 additions and 4008 deletions

File diff suppressed because it is too large Load Diff

4008
harbour/ChangeLog.004 Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -74,6 +74,10 @@
This has been corrected by ptucker
*/
/* NOTE: The following #include "hbwinapi.h" must
be ahead of any other #include statements! */
#include "hbwinapi.h"
#include <ctype.h>
#include "extend.h"
#include "itemapi.h"
@@ -1508,9 +1512,36 @@ HARBOUR HB_DISKSPACE( void )
}
if( uiResult != 0 )
ulSpaceFree = ( ( ULONG ) disk.avail_clusters *
( ULONG ) disk.sectors_per_cluster *
( ULONG ) disk.bytes_per_sector );
ulSpaceFree = ( ULONG ) disk.avail_clusters *
( ULONG ) disk.sectors_per_cluster *
( ULONG ) disk.bytes_per_sector;
#elif defined(_Windows) || defined(WINNT)
{
char szPath[ 4 ];
DWORD dwSectorsPerCluster;
DWORD dwBytesPerSector;
DWORD dwNumberOfFreeClusters;
DWORD dwTotalNumberOfClusters;
szPath[ 0 ] = uiDrive + 'A' - 1;
szPath[ 1 ] = ':';
szPath[ 2 ] = '\\';
szPath[ 3 ] = '\0';
if( GetDiskFreeSpace( szPath,
&dwSectorsPerCluster,
&dwBytesPerSector,
&dwNumberOfFreeClusters,
&dwTotalNumberOfClusters ) )
{
ulSpaceFree = dwNumberOfFreeClusters *
dwSectorsPerCluster *
dwBytesPerSector;
}
}
#else