Solid File System

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

SolFSStorage.SetFileAttributes method

Filter:

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

SolFSStorage     See also    

Overview

Sets file attributes.

Declaration

[Pascal]
    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)

[C#]
    void SetFileAttributes( string fileName, int attributes)

[VB.NET]
    Sub SetFileAttributes(ByVal fileName As String, ByVal attributes As Long)

[Java]
    void setFileAttributes( String fileName, int attributes)

Parameters

  • 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.

Description

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

Back to top