Solid File System

Virtual file system enigne that can be embedded into your software.

SolFSStorage.Link method

Filter:

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

SolFSStorage     See also    

Overview

Creates a symbolic link.

Declaration

[Pascal]
    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)

[C#]
    void Link( string LinkName, string DestinationName)

[VB.NET]
    Sub Link(ByVal LinkName As String, ByVal DestinationName As String)

[Java]
    void link( String linkName, String destinationName)

Parameters

  • [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.

Description

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    

Back to top