SolFSStorage.GetFileAttributes method


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

SolFSStorage     See also    


Returns attributes of the stream, file or directory.


    function GetFileAttributes(const FileName: TSolFSString) : LongWord;

[Plain C]
    long _stdcall StorageGetFileAttributes(unsigned long Storage, const wchar_t* FileName, unsigned long & Attributes);

[C++ (DLL/Lib)]
    unsigned long GetFileAttributes(unsigned short *fileName);

[C++ (VCL)]
    void __fastcall GetFileAttributes(const TSolFSString FileName, unsigned int &Attributes);

[C++ (.NET)]
    long GetFileAttributes(String *fileName);

    int GetFileAttributes(string fileName);

    Function GetFileAttributes(ByVal fileName As String) as Long

    long getFileAttributes(String fileName)


  • FileName - the full file name in the SolFSStorage.
  • Attributes - returns file attributes mode.
  • [Plain C] Storage - handle to the storage returned by Create or Open function.

Return value

Object attributes (see values below).

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.

Values of Attributes


Use GeFileAttributes to read the attributes of the stream, file or directory.

See also