Discuss this help topic in SecureBlackbox Forum


TElSFTPServer     See also     

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

This event is fired when your software has to create a symbolic link.


    event TElSFTPServerCreateSymLinkEvent OnCreateSymLink;
    delegate void TElSFTPServerCreateSymLinkEvent(Object Sender, string LinkPath, string TargetPath, ref int ErrorCode, ref string Comment);

    Event OnCreateSymLink As TElSFTPServerCreateSymLinkEvent
    Delegate Sub TElSFTPServerCreateSymLinkEvent(ByVal Sender As Object, ByVal LinkPath As String, ByVal TargetPath As String, ByRef ErrorCode As Integer, ByRef Comment As String)

    property OnCreateSymLink: TSBSFTPServerCreateSymLinkEvent;
    TSBSFTPServerCreateSymLinkEvent = procedure(Sender : TObject; const LinkPath : string; const TargetPath : string; var ErrorCode : integer; var Comment : string) of object;

    void get_OnCreateSymLink(TElSFTPServerCreateSymLinkEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCreateSymLink(TElSFTPServerCreateSymLinkEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerCreateSymLinkEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcLinkPath, int32_t szLinkPath, const char * pcTargetPath, int32_t szTargetPath, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

    TElSFTPServerCreateSymLinkEvent|callable|NULL get_OnCreateSymLink()
    void set_OnCreateSymLink(TElSFTPServerCreateSymLinkEvent|callable|NULL $Value)
    callable TElSFTPServerCreateSymLinkEvent(TObject $Sender, string $LinkPath, string $TargetPath, integer &$ErrorCode, string &$Comment)


  • LinkPath - specifies the name for a symbolic link to create
  • TargetPath - specifies the target of symbolic link
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcLinkPath - specifies the name for a symbolic link to create
  • szLinkPath - the length of pcLinkPath.
  • pcTargetPath - specifies the target of symbolic link
  • szTargetPath - the length of pcTargetPath.
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes


    This event is fired every time when new symbolic link has to be created. The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

See also:     OnCreateHardLink     OnReadSymLink     OnCreateDirectory     OnRemove    

Discuss this help topic in SecureBlackbox Forum