EldoS
 Table of Contents >  OnCloseFile event/delegate/callback
Navigation
Web site
Support
Table Of Contents
Send comments on this topic

OnCloseFile event/delegate/callback

Filter:

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

CallbackFileSystem     See also    

Overview

This event is fired when the OS needs to close the file.

Declaration

[Pascal]
    property OnCloseFile : TCbFsCloseFileEvent;
    TCbFsCloseFileEvent = procedure( Sender : TObject; FileInfo: TCbFsFileInfo; FileHandleContext: Pointer ) of object;

[C++ (Lib)]
    void (__stdcall *CbFsCloseFileEvent)(void* Sender, CbFsFileInfo* FileInfo, void * FileHandleContext );

[C++ (VCL)]
    typedef void (__closure *TCbFsCloseFileEvent)( System::TObject* Sender, TCbFsFileInfo* FileInfo, void * FileHandleContext );

[C++ (.NET)]
    public __delegate void CbFsCloseFileEvent( CallbackFileSystem^ Sender, CbFsFileInfo^ FileInfo, IntPtr FileHandleContext );

[C#]
    public void CbFsCloseFileEvent( CallbackFileSystem^ Sender, CbFsFileInfo FileInfo, IntPtr FileHandleContext );

[VB.NET]
    Sub CbFsCloseFileEvent( ByVal Sender As CallbackFileSystem, ByVal FileInfo As CbFsFileInfo, ByVal FileHandleContext As IntPtr )

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileInfo - contains the information about the file
  • FileHandleContext - the placeholder for the application-defined data

Description

This event is fired when the OS needs to close the previously created or opened file. Use FileInfo and FileHandleContext to identify the file that needs to be closed.
Read more about contexts.

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

OnCreateFile     OnOpenFile    

Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2008, EldoS Corporation