EldoS
 Table of Contents >  OnGetFileSize event/delegate/callback
Navigation
Web site
Support
Table Of Contents

OnGetFileSize event/delegate/callback

Filter:

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

CBDisk     See also    

Overview

This event is fired when CBDisk wants to know current size of the storage.

Declaration

[Pascal]
    TCBDiskGetFileSizeEvent = procedure( Sender : TObject; var Size : Int64; var Result : LongInt) of object;

[C++ (Lib)]
    typedef Error (*CBDiskGetFileSizeEvent)( CBDisk* Sender, LongLongWord *Size);

[C++ (VCL)]
    typedef void (__closure *TCBDiskGetFileSizeEvent)( System::TObject* Sender, LongLongWord *Size, Error& Result);

[C++ (.NET)]
    public __delegate void CBDiskGetFileSizeEvent( CBDisk^ Sender, UInt64 __gc &Size, Int32 __gc &Result);

[C#]
    public void CBDiskGetFileSizeEvent( CBDisk.CBDisk Sender, ref ulong Size, ref int Result);

[VB.NET]
    Sub CBDiskGetFileSizeEvent( ByVal Sender As CBDisk.CBDisk, ByVal FileHandle As UInt32, ByRef Size As UInt64, ByRef Result As Int32)

Parameters

  • Sender - reference to the class that called the delegate/event handler.
  • Size - out parameter where the application must place the size of the file.
  • Result - out parameter (return value for DLL) where the application places the result of the operation. If you are working with file system, Win32 error code is a good candidate for placing to Result parameter. Otherwise you can use any other error codes, just be sure that 0 means success.

Description

This event is fired when CBDisk wants to know current size of the storage.

See also

Information about callbacks    


Got questions or comments about this topic? Tell us about them.
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2011, EldoS Corporation