Discuss this help topic in SecureBlackbox Forum



Filter: C#  VB.NET  Pascal  C++  PHP  Java  

This event is fired when your software has to close the handle.


    event TElSFTPServerCloseHandleEvent OnCloseHandle;
    delegate void TElSFTPServerCloseHandleEvent(Object Sender, Object Data, ref int ErrorCode, ref string Comment);

    Event OnCloseHandle As TElSFTPServerCloseHandleEvent
    Delegate Sub TElSFTPServerCloseHandleEvent(ByVal Sender As Object, ByVal Data As Object, ByRef ErrorCode As Integer, ByRef Comment As String)

    property OnCloseHandle: TSBSFTPServerCloseHandleEvent;
    TSBSFTPServerCloseHandleEvent = procedure(Sender : TObject; Data: pointer; var ErrorCode : integer; var Comment : string) of object;
    type TSBSftpFileHandle = ByteArray;

    void get_OnCloseHandle(TElSFTPServerCloseHandleEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCloseHandle(TElSFTPServerCloseHandleEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerCloseHandleEvent)(void * _ObjectData, TObjectHandle Sender, void * Data, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

    TElSFTPServerCloseHandleEvent|callable|NULL get_OnCloseHandle()
    void set_OnCloseHandle(TElSFTPServerCloseHandleEvent|callable|NULL $Value)
    callable TElSFTPServerCloseHandleEvent(TObject $Sender, TSBPointer|NULL $Data, integer &$ErrorCode, string &$Comment)

    TElSFTPServerCloseHandleEvent getOnCloseHandle();
    void setOnCloseHandle(TElSFTPServerCloseHandleEvent Value);
    TElSFTPServerCloseHandleEvent.Callback OnCloseHandle = new TElSFTPServerCloseHandleEvent.Callback() {
        public void TElSFTPServerCloseHandleEventCallback(TObject Sender, TObject Data, TSBInteger ErrorCode, TSBString Comment) {


  • Data - user data associated with the opened file
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes


    This event is fired when the handle has to be closed. The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

Discuss this help topic in SecureBlackbox Forum