OnSetQuotasControlInformation event/delegate/callback

Filter:

Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

CBFSConnect     See also    

Overview

The event is fired when the OS needs to update default quota information for the volume.

Declaration

[Pascal]
    property OnSetQuotasControlInformation : TCBSetQuotasControlInformationEvent;
    TCBSetQuotasControlInformationEvent = procedure( Sender : TObject; DefaultQuotaThreshold : Int64; DefaultQuotaLimit: Int64; FileSystemControlFlags : LongWord; ) of object;

[C++ (Lib)]
    void (__stdcall *CBSetQuotasControlInformationEvent)( void* Sender, long long DefaultQuotaThreshold, long long DefaultQuotaLimit, unsigned long FileSystemControlFlags );

[C++ (VCL)]
    typedef void (__closure *TCBSetQuotasControlInformationEvent)( System::TObject* Sender, __int64 DefaultQuotaThreshold, __int64 DefaultQuotaLimit, unsigned long FileSystemControlFlags );

[C++ (.NET)]
    public __delegate void CBSetQuotasControlInformationEvent( CBFSConnect^ Sender, Int64 DefaultQuotaThreshold, Int64 DefaultQuotaLimit, UInt32 FileSystemControlFlags );

[C#]
    public void CBSetQuotasControlInformationEvent( CBFSConnect Sender, Int64 DefaultQuotaThreshold, Int64 DefaultQuotaLimit, UInt32 FileSystemControlFlags );

[VB.NET]
    Sub CBSetQuotasControlInformationEvent( ByVal Sender As CBFSConnect, ByVal DefaultQuotaThreshold As Int64, ByVal DefaultQuotaLimit As Int64, ByVal FileSystemControlFlags As UInt32 )

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • DefaultQuotaThreshold - default value in bytes, after which the user is warned about approaching the limit
  • DefaultQuotaLimit - default limit of the user quota on the volume
  • FileSystemControlFlags - flags that describe the state of the disk quota information

Description

This event is fired when the OS needs to set default quota parameters for the volume.

The parameters are described in MSDN article (https://msdn.microsoft.com/en-us/data/ff540258%28v=vs.100%29).

The callback / event is optional, i.e. you don't have to handle it if you don't support disk quotas.

Error handling

See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to CBFS Connect.

See also

OnQueryQuotas event     OnQueryQuotasControlInformation event     OnSetQuotas event