Solid File System

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

SolFSStorage.ConvertFileNameToSystem method


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

SolFSStorage     See also    


Converts file name from storage-local to system-wide format.

Not applicable


    procedure ConvertFileNameToSystem( StorageFileName: TSolFSString; var SystemFileName: TSolFSString);
    type TSolFSString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[Plain C]
    long _stdcall StorageConvertFileNameToSystem(unsigned long Storage, const wchar_t* StorageFileName, wchar_t* SystemFileNameBuffer, long* SystemFileNameBufferSize);

[C++ (DLL/Lib)]
    void ConvertFileNameToSystem(unsigned short * StorageFileName, unsigned short * SystemFileNameBuffer, long* SystemFileNameBufferSize);

[C++ (VCL)]
    void __fastcall ConvertFileNameToSystem( TSolFSString StorageFileName, TSolFSString *SystemFileName);

[C++ (.NET)]
    void ConvertFileNameToSystem(String* storageFileName, String* *systemFileName)

    void ConvertFileNameToSystem(string storageFileName, ref string systemFileName)

    Sub ConvertFileNameToSystem(ByVal storageFileName As String, ByRef SystemFileName As String)

    not applicable;


  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • SystemFileNameBufferSize - On entry contains the size of the buffer, specified in SystemFileNameBuffer. On exit contains the size of the actually written data.
  • StorageFileName - file name (full path must be specified), local to storage.
  • SystemFileName - file name, which can be used to access the file system-wide.

[Plain C]  Return values

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


Use this function to convert the local name to system-wide. Local name has the form of "\folder1\folder2\...\filename.ext" and can be used in calls to SolFS API. System-wide names are used in calls to Windows API.

You can use this function when you need to pass the name of the file, located in SolFS storage, to other application.

See also


Back to top