Discuss this help topic in CBFS Forum

OnSetQuotasControlInformation event/delegate/callback

Filter:

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

CallbackFileSystem     See also    

Overview

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

Declaration

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

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

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

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

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

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

[Java]
    void ICbFsDiskQuotaEvents.onSetQuotasControlInformation( CallbackFileSystem sender, );

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 Callback File System.

See also

OnQueryQuotas event     OnQueryQuotasControlInformation event     OnSetQuotas event    

Discuss this help topic in CBFS Forum