EldoS
 Table of Contents >  SolFSStorage.Link method
Navigation
Web site
Support
Table Of Contents
Send comments on this topic

SolFSStorage.Link method

Filter:

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

SolFSStorage     See also    

Overview

Creates a symbolic link.

Declaration

[Pascal]
    procedure Link(LinkName: WideString; DestinationName: WideString);

[DLL]
    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(WideString LinkName, WideString 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)

Parameters

  • [DLL] 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).

[DLL]  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    

Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2008, EldoS Corporation