SolFSStorage.Link method


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

SolFSStorage     See also    


Creates a symbolic link.


    procedure Link(LinkName: TSolFSString; DestinationName: TSolFSString);

[Plain C]
    long _stdcall StorageLink(unsigned long Storage, const wchar_t* LinkName, const wchar_t* DestinationName);

[C++ (DLL/Lib)]
    void Link(unsigned short* LinkName, unsigned short* DestinationName);

[C++ (VCL)]
    void __fastcall Link(TSolFSString LinkName, TSolFSString DestinationName);

[C++ (.NET)]
    void Link(String* LinkName, String* DestinationName)

    void Link( string LinkName, string DestinationName)

    Sub Link(ByVal LinkName As String, ByVal DestinationName As String)

    void link( String linkName, String destinationName)


  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • LinkName - symbolic link name (full path must be specified).
  • DestinationName - destination file name (full path must be specified).

[Plain C]  Return values

0 if the function succeeded or one of Error codes if the function failed.


Use Link function to create a symbolic link. Symbolic link is a special file, which refers to other file. When symbolic link is opened as stream, the link destination is read/written instead.

Use DeleteFile method to delete a symbolic link

See also

GetLinkDestination     DeleteFile