StorageSearch structure
Filter:
Pascal Plain C C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
This structure is used with FindFirst/FindNext methods.
Declaration
[Pascal]
TStorageSearch = record
SearchHandle: Handle;
FullName: PWideChar;
FileName: PWideChar;
Attributes: LongWord;
Creation: TDateTime;
Modification: TDateTime;
LastAccess: TDateTime;
FileSize: Int64;
end;
[Plain C]
struct StorageSearchStruct {
unsigned long SearchHandle;
wchar_t* FullName;
wchar_t* FileName;
unsigned long Attributes;
double Creation;
double Modification;
double LastAccess;
unsigned long long FileSize;
} TStorageSearch, *PStorageSearch;
[C++ (VCL)]
struct TStorageSearch
{
unsigned SearchHandle;
wchar_t *FullName;
wchar_t *FileName;
unsigned Attributes;
System::TDateTime Creation;
System::TDateTime Modification;
System::TDateTime LastAccess;
long long FileSize;
};
[C++ (.NET)]
struct StorageSearch
{
int SearchHandle;
String *FullName;
String *FileName;
int Attributes;
System::DateTime Creation;
System::DateTime Modification;
System::DateTime LastAccess;
__int64 FileSize;
};
[C#]
struct StorageSearch
{
int SearchHandle;
string FullName;
string FileName;
int Attributes;
System.DateTime Creation;
System.DateTime Modification;
System.DateTime LastAccess;
long FileSize;
};
[VB.NET]
Public Structure StorageSearch
SearchHandle As Integer
FullName As String
FileName As String
Attributes As Integer
Creation As Date
Modification As Date
LastAccess As Date
FileSize As Long
;
[Java]
public class SolFSStorageSearch
{
long Handle;
String FullName;
String FileName;
long Attributes;
double Creation;
double Modification;
double LastAccess;
long FileSize;
};
Fields
- Attributes - contains file/folder attributes. Currently only File and Directory attributes are defined. Values:
- Creation - contains date and time of file creation.
- FileName - contains the name of the file or folder.
- FileSize - contains the size of the file.
- FullName - contains the full path with own name of the file or folder.
- LastAccess - contains time of last file access. Last access time is tracked only when UseAccessTime property is set to true.
- Modification - contains time of last file modification.
- SearchHandle - for internal use only.
Values of Attributes
[Pascal] [DLL] [C++ (VCL)] [C++ (.NET)] [C#] [VB.NET] [ActiveX] [VB]
[Java]
Value
Description
Can be set with SetFileAttributes
attrFile
File
1 (0x1)
Specifies that the entry is a file
no
attrDirectory
Directory
2 (0x2)
Specifies that the entry is a directory
no
attrCompressed
Compressed
8 (0x8)
Specifies that the file is compressed
no
attrEncrypted
Encrypted
16 (0x10)
Specifies that the file is encrypted
no
attrSymLink
SymLink
32 (0x20)
Specifies that the entry is a symbolic link
no
attrReadOnly
ReadOnly
64 (0x40)
Specifies that the file is read-only. The attribute is not used by SolFS.
yes
attrArchive
Archive
128 (0x80)
Specifies that the file requires archiving. The attribute is not used by SolFS.
yes
attrHidden
Hidden
256 (0x100)
Specifies that the file is hidden. The attribute is not used by SolFS.
yes
attrSystem
System
512 (0x200)
Specifies that the file is system. The attribute is not used by SolFS.
yes
attrTemporary
Temporary
1024 (0x400)
Specifies that the file is temporary. The attribute is not used by SolFS.
yes
attrDeleteOnClose
DeleteOnClose
2048 (0x800)
Specifies that the file should be deleted when the last handle to the file is closed. The attribute is currently not supported by SolFS.
yes
attrReserved0
Reserved0
0x1000
Reserved for future use
no
attrReserved1
Reserved1
0x2000
Reserved for future use
no
attrReserved2
Reserved2
0x4000
Reserved for future use
no
attrReserved3
Reserved3
0x8000
Reserved for future use
no
attrNoUserChange
NoUserChange
attrFile | attrDirectory | attrDataTree | attrCompressed | attrEncrypted | attrSymLink | attrReserved0 | attrReserved1 | attrReserved2 | attrReserved3
Thse attributes can't be changed with SetFileAttributes
no
attrUserDefined
UserDefined
0xFFFF0000
A mask that specifies user-defined attributes
yes
attrAnyFile
AnyFile
0xFFFFFFFF
A mask that specifies entries with any attributes
Description
StorageSearch is a record (struct in C++) which contains information about a file or folder in SolFS storage.
See also
Got questions or comments about this topic? Tell us about them.

