SolFSStorage.GetLinkDestination method


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

SolFSStorage     See also    


Returns destination name, referred to by symbolic link.


    procedure GetLinkDestination(LinkName: TSolFSString; var DestinationName: TSolFSString);

[Plain C]
    long _stdcall StorageGetLinkDestination(unsigned long Storage, const wchar_t* LinkName, const wchar_t* *DestinationName);
    long _stdcall StorageGetLinkDestinationEx(unsigned long Storage, const wchar_t* LinkName, const wchar_t* *DestinationBuffer, LongWord *DestinationBufferSize);

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

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

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

    void GetLinkDestination(string LinkName, ref string DestinationName)

    Sub GetLinkDestination(ByVal LinkName As String, ByRef DestinationName As String)

    String getLinkDestination(String linkName)


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

[Plain C]  Return values

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


Use GetLinkDestination function to get a destination file referred to by symbolic link. The name is returned in format in which it is set for the symbolic link, i.e. the name can be relative to the link folder. To get the destination in absolute format use ResolveLink method.
[DLL] Don't free memory, returned by the call to GetLinkDestination.

Use DeleteFile method to delete a symbolic link

See also

DeleteFile     Link     ResolveLink