SolFSStorage.SetFileAttributes method


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

SolFSStorage     See also    


Sets file attributes.


    procedure SetFileAttributes(const FileName: TSolFSString; Attributes: LongWord);

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

[C++ (DLL/Lib)]
    void SetFileAttributes(const unsigned short * FileName, unsigned long Attributes);

[C++ (VCL)]
    void __fastcall SetFileAttributes(const TSolFSString FileName, unsigned long Attributes);

[C++ (.NET)]
    void SetFileAttributes( String *fileName, long Attributes)

    void SetFileAttributes( string fileName, int attributes)

    Sub SetFileAttributes(ByVal fileName As String, ByVal attributes As Long)

    void setFileAttributes( String fileName, int attributes)


  • FileName - the full file name in the storage
  • Attributes - use this parameter to set Attributes mode.
  • [Plain C] Storage - handle to the storage returned by Create or Open function.

Values of StorageAttributes

[Plain C]  Return values

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


Use SetFileAttributes to set attributes of the file. The method can be used to set custom attributes. See attribute descriptions to find out which attributes can't be changed using this method and should be changed using other methods (like SetEncryption and SetCompression).

See also

GetFileAttributes     SetFileCompression     SetFileEncryption