#include <revolution/vf.h>
/* VFDta size 1092bytes */
typedef struct VFDta {
VFFile* file;
VFDir* dir;
VFVol* vol;
u32 parentStartCluster;
u32 parentPos;
u32 status;
u8 numEntryLFNs;
u8 ordinal;
u8 check_sum;
u8 attr;
s8 regExp[VF_PATH_BUF_SIZE];
u16 time;
u16 date;
u32 fileSize;
u8 attribute;
s8 fileName[VF_SHORT_NAME_BUF_SIZE];
s8 longName[VF_LONG_NAME_PATH_SIZE + 2];
s8 pad[2];
} VFDta;
/* VFWDta size 2152bytes */
typedef struct VFWDta {
VFFile* file;
VFDir* dir;
VFVol* vol;
u32 parentStartCluster;
u32 parentPos;
u32 status;
u8 numEntryLFNs;
u8 ordinal;
u8 check_sum;
u8 attr;
s8 regExp[VF_PATH_BUF_SIZE];
u16 time;
u16 date;
u32 fileSize;
u8 attribute;
s8 fileName[VF_SHORT_NAME_BUF_SIZE];
s8 longName[VF_LONG_NAME_PATH_BUF_SIZE + 2];
VFWchar regExpUni[VF_LONG_NAME_PATH_CHARS + 1];
VFWchar fileNameUni[VF_SHORT_DOT_NAME_CHARS + 1];
VFWchar longNameUni[VF_LONG_NAME_CHARS + 1];
s8 pad[2];
} VFWDta;
Macro for referencing members.
VF_DTA_GET_FILE_ATTR |
Gets the file attributes. Access VFFileSearchFirst file attributes to get values. |
VF_DTA_GET_FILE_NAME_P |
Gets the short file name (8.3 format). |
VF_DTA_GET_LONG_FILE_NAME_P |
Gets the long file name (spaces are used if the file name fits in 8.3 format). |
VF_DTA_GET_FILE_SIZE |
Gets the file size. |
VF_DTA_GET_FILE_SECONDS |
Gets the file update time. (total number of seconds since 00:00:00 2000/1/1) |
The VFDta structure is a structure used for the processing of file searches.
Editing the internal members when using the VFDta structure is prohibited because the search process may not operate correctly.
2006/10/27 Release.
CONFIDENTIAL