Solid File System

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

SolFSStorage.ConvertFileNameToStorage method


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

SolFSStorage     See also    


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

Not applicable


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

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

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

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

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

    void ConvertFileNameToStorage(string storageFileName, ref string systemFileName)

    Sub ConvertFileNameToStorage(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.
  • SystemFileName - file name, used to access the file system-wide.
  • StorageFileName - file name (full path must be specified), which is local to storage.

[Plain C]  Return values

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


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

You can use this function when you need to access the file, placed to the storage by some other application, via SolFS API.

See also


Back to top