SftDirectory 2.5

SftDirectory.GetDiskspace Method

Softel vdm, Inc.

Determines disk space information for a disk volume.

Syntax       

VB.NET

object.GetDiskspace(ByVal Volume As String, ByRef FreeBytes As Long, ByRef TotalBytes As Long, ByRef FreeUserBytes As Long)

VB

not supported - see GetDiskspaceF instead

C#.NET

void object.GetDiskspace(string Volume, out long FreeBytes, out long TotalBytes, out long FreeUserBytes);

VC++

HRESULT object->GetDiskspace(_bstr_t Volume, __int64* FreeBytes, __int64* TotalBytes, __int64* FreeUserBytes);

C

HRESULT object->raw_GetDiskspace(BSTR Volume, __int64* FreeBytes, __int64* TotalBytes, __int64* FreeUserBytes);

Delphi

procedure object.GetDiskspace(Volume : WideString, out FreeBytes : Int64, out TotalBytes : Int64, out FreeUserBytes : Int64);

object

A SftDirectory object.

Volume

A string that defines the volume for which size information is to be retrieved. This can be a drive letter, UNC name, or the path of a file/folder.

FreeBytes

Returns the number of bytes available on the specified volume.

TotalBytes

Returns the total number of bytes (used and free) on the specified volume.

FreeUserBytes

Returns the number of bytes available for the calling application on the specified volume. This value may be limited by user quotas and may be less than the free  space FreeUserBytes.

Comments

The GetDiskspace method determines disk space information for a disk volume.

The GetDiskspaceF method is identical, but uses different types for return values.


Feedback / comments / error reports for this topic
© 2003, 2008 - Softel vdm, Inc. - www.softelvdm.com