Discuss this help topic in SecureBlackbox Forum

TElSFTPServer.OnCreateHardLink

TElSFTPServer     See also     


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


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

Declaration

[C#]
    event TElSFTPServerCreateHardLinkEvent OnCreateHardLink;
    delegate void TElSFTPServerCreateHardLinkEvent(Object Sender, string NewLinkPath, string ExistingPath, ref int ErrorCode, ref string Comment);

[VB.NET]
    Event OnCreateHardLink As TElSFTPServerCreateHardLinkEvent
    Delegate Sub TElSFTPServerCreateHardLinkEvent(ByVal Sender As Object, ByVal NewLinkPath As String, ByVal ExistingPath As String, ByRef ErrorCode As Integer, ByRef Comment As String)

[Pascal]
    property OnCreateHardLink: TElSFTPServerCreateHardLinkEvent;
    TElSFTPServerCreateHardLinkEvent = procedure(Sender : TObject; const NewLinkPath : string;const ExistingPath : string; var ErrorCode : integer; var Comment : string) of object;

[C++]
    void get_OnCreateHardLink(TElSFTPServerCreateHardLinkEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCreateHardLink(TElSFTPServerCreateHardLinkEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerCreateHardLinkEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcNewLinkPath, int32_t szNewLinkPath, const char * pcExistingPath, int32_t szExistingPath, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

[PHP]
    TElSFTPServerCreateHardLinkEvent|callable|NULL get_OnCreateHardLink()
    void set_OnCreateHardLink(TElSFTPServerCreateHardLinkEvent|callable|NULL $Value)
    callable TElSFTPServerCreateHardLinkEvent(TObject $Sender, string $NewLinkPath, string $ExistingPath, integer &$ErrorCode, string &$Comment)

[Java]
    TElSFTPServerCreateHardLinkEvent getOnCreateHardLink();
    void setOnCreateHardLink(TElSFTPServerCreateHardLinkEvent Value);
    TElSFTPServerCreateHardLinkEvent.Callback OnCreateHardLink = new TElSFTPServerCreateHardLinkEvent.Callback() {
        public void TElSFTPServerCreateHardLinkEventCallback(TObject Sender, String NewLinkPath, String ExistingPath, TSBInteger ErrorCode, TSBString Comment) {
            //...
        }
    }

Parameters

  • NewLinkPath - specifies the name for a newly created hard link
  • ExistingPath - specifies the target of hard link
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcNewLinkPath - specifies the name for a newly created hard link
  • szNewLinkPath - the length of pcNewLinkPath.
  • pcExistingPath - specifies the target of hard link
  • szExistingPath - the length of pcExistingPath.
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes values:

Description

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

See also:     OnCreateSymLink    

Discuss this help topic in SecureBlackbox Forum