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

OnFileDelete event/delegate/callback

Filter:

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

SolFSStorage     See also    

Overview

This event is fired when the storage needs to be deleted.

Declaration

[Pascal]
    TSolFSDeleteFileEvent = procedure( Sender : TObject; const FileName : WideString; var Result : LongInt) of object;

[DLL]
    typedef Error (__stdcall *SolFSDeleteFileFunc)( LongWord UserData, PWideChar FileName);

[C++ (DLL/Lib)]
    typedef Error (__stdcall *SolFSDeleteFileFunc)( LongWord UserData, PWideChar FileName);

[C++ (VCL)]
    typedef void (__closure *TSolFSDeleteFileEvent)( System::TObject* Sender, const WideString FileName, Error& Result);

[C++ (.NET)]
    public __delegate void SolFSDeleteFileEvent( SolFSStorage* Sender, System::String* FileName, Int32 __gc &Result);

[C#]
    public void SolFSDeleteFileEvent( SolFS.SolFSStorage Sender, string FileName, ref int Result);

[VB.NET]
    Sub SolFSDeleteFileEvent( ByVal Sender As SolFS.SolFSStorage, ByVal FileName As String, ByRef Result As Int32);

Parameters

  • Sender - reference to the class that called the delegate/event handler.
  • FileName - the name of the storage as passed to SolFSStorage.Create constructor.
  • Result - out parameter (return value for DLL) is 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.
  • [DLL] UserData - application-defined parameter which is specified when creating the storage and passed back to callback function.

Description

The event is fired when the storage file must be deleted from media.

See also

Information about callbacks (Driver Edition only)     OnFileCreate    

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