StorageSearch structure
Filter:
Pascal DLL 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;
[DLL]
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
;
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]
Value
Description
Can be set with SetFileAttributes
attrFile
1 (0x1)
Specifies that the entry is a file
no
attrDirectory
2 (0x2)
Specifies that the entry is a directory
no
attrCompressed
8 (0x8)
Specifies that the file is compressed
no
attrEncrypted
16 (0x10)
Specifies that the file is encrypted
no
attrSymLink
32 (0x20)
Specifies that the entry is a symbolic link
no
attrReadOnly
64 (0x40)
Specifies that the file is read-only. The attribute is not used by SolFS.
yes
attrArchive
128 (0x80)
Specifies that the file requires archiving. The attribute is not used by SolFS.
yes
attrHidden
256 (0x100)
Specifies that the file is hidden. The attribute is not used by SolFS.
yes
attrSystem
512 (0x200)
Specifies that the file is system. The attribute is not used by SolFS.
yes
attrTemporary
1024 (0x400)
Specifies that the file is temporary. The attribute is not used by SolFS.
yes
attrDeleteOnClose
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
0x1000
Reserved for future use
no
attrReserved1
0x2000
Reserved for future use
no
attrReserved2
0x4000
Reserved for future use
no
attrReserved3
0x8000
Reserved for future use
no
attrNoUserChange
attrFile | attrDirectory | attrDataTree | attrCompressed | attrEncrypted | attrSymLink | attrReserved0 | attrReserved1 | attrReserved2 | attrReserved3
Thse attributes can't be changed with SetFileAttributes
no
attrUserDefined
0xFFFF0000
A mask that specifies user-defined attributes
yes
attrAnyFile
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.
