OnGetVolumeSize event/delegate/callback
Filter:
Pascal C++ (Lib) C++ (VCL) C++ (.NET) C# VB.NET JavaOverview
The event is fired when the OS needs to get information about the storage (disk) size and free space.
Declaration
[Pascal]
property OnGetVolumeSize : TCbFsGetVolumeSizeEvent;
TCbFsGetVolumeSizeEvent = procedure(
Sender : TObject;
var TotalAllocationUnits: Int64;
var AvailableAllocationUnits: Int64
) of object;
[C++ (Lib)]
void (__stdcall *CbFsGetVolumeSizeEvent)(void* Sender,
__int64 & TotalAllocationUnits,
__int64 & AvailableAllocationUnits
);
[C++ (VCL)]
typedef void (__closure *TCbFsGetVolumeSizeEvent)(
System::TObject* Sender,
__int64 & TotalAllocationUnits,
__int64 & AvailableAllocationUnits
);
[C++ (.NET)]
public __delegate void CbFsGetVolumeSizeEvent(
CallbackFileSystem^ Sender,
Int64% TotalAllocationUnits,
Int64% AvailableAllocationUnits
);
[C#]
public void CbFsGetVolumeSizeEvent(
CallbackFileSystem Sender,
ref Int64 TotalAllocationUnits,
ref Int64 AvailableAllocationUnits
);
[VB.NET]
Sub CbFsGetVolumeSizeEvent(
ByVal Sender As CallbackFileSystem,
ByRef TotalAllocationUnits As Long,
ByRef AvailableAllocationUnits As Long
)
[Java]
void ICbFsVolumeEvents.onGetVolumeSize(
CallbackFileSystem sender,
longRef totalAllocationUnits,
longRef availableAllocationUnits
);
Parameters
- Sender - reference to the class that called the delegate/event handler.
- TotalAllocationUnits - the event handler must place the total number of the allocation units (clusters) on device to this parameter
- AvailableAllocationUnits - the event handler must place the number of available (free) allocation units (clusters) on device to this parameter
Description
This event is fired when the OS wants to obtain information about the size and available space on the disk.
Error handling
See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to Callback File System.
See also
Got questions or comments about this topic? Tell us about them.

