1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>VFDta</title> 9</head> 10 11<body> 12 13<h1>VFDta</h1> 14 15<h2>C Specification</h2> 16<dl><dd><pre><code> 17#include <revolution/vf.h> 18 19/* VFDta size 1092bytes */ 20typedef struct VFDta { 21 VFFile* file; 22 VFDir* dir; 23 VFVol* vol; 24 25 u32 parentStartCluster; 26 u32 parentPos; 27 28 u32 status; 29 u8 numEntryLFNs; 30 u8 ordinal; 31 u8 check_sum; 32 u8 attr; 33 s8 regExp[VF_PATH_BUF_SIZE]; 34 35 u16 time; 36 u16 date; 37 u32 fileSize; 38 39 u8 attribute; 40 s8 fileName[VF_SHORT_NAME_BUF_SIZE]; 41 s8 longName[VF_LONG_NAME_PATH_SIZE + 2]; 42 s8 pad[2]; 43} VFDta; 44 45/* VFWDta size 2152bytes */ 46typedef struct VFWDta { 47 VFFile* file; 48 VFDir* dir; 49 VFVol* vol; 50 51 u32 parentStartCluster; 52 u32 parentPos; 53 u32 status; 54 u8 numEntryLFNs; 55 u8 ordinal; 56 u8 check_sum; 57 u8 attr; 58 s8 regExp[VF_PATH_BUF_SIZE]; 59 60 u16 time; 61 u16 date; 62 63 u32 fileSize; 64 u8 attribute; 65 s8 fileName[VF_SHORT_NAME_BUF_SIZE]; 66 s8 longName[VF_LONG_NAME_PATH_BUF_SIZE + 2]; 67 68 VFWchar regExpUni[VF_LONG_NAME_PATH_CHARS + 1]; 69 VFWchar fileNameUni[VF_SHORT_DOT_NAME_CHARS + 1]; 70 VFWchar longNameUni[VF_LONG_NAME_CHARS + 1]; 71 s8 pad[2]; 72} VFWDta; 73 74</code></pre></dd></dl> 75 76<h2>Macros for Accessing VFDta Members</h2> 77<p> 78Macro for referencing members.<br> 79<pre> 80<TABLE border="1" > 81 <tr> 82<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>VF_DTA_GET_FILE_ATTR</EM></STRONG></CODE></TD> 83<TD width="550">Gets the file attributes.<br>Access <code><a href="./VFFileSearchFirst.html">VFFileSearchFirst</a></code> file attributes to get values.</TD> 84 </tr> 85 <tr> 86<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>VF_DTA_GET_FILE_NAME_P</EM></STRONG></CODE></TD> 87<TD width="550">Gets the short file name (8.3 format).</TD> 88 </tr> 89 <tr> 90<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>VF_DTA_GET_LONG_FILE_NAME_P</EM></STRONG></CODE></TD> 91<TD width="550">Gets the long file name (spaces are used if the file name fits in 8.3 format).</TD> 92 </tr> 93 <tr> 94<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>VF_DTA_GET_FILE_SIZE</EM></STRONG></CODE></TD> 95<TD width="550">Gets the file size.</TD> 96 </tr> 97 <tr> 98<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>VF_DTA_GET_FILE_SECONDS</EM></STRONG></CODE></TD> 99<TD width="550">Gets the file update time. (total number of seconds since 00:00:00 2000/1/1)</TD> 100 </tr> 101</TABLE> 102</pre> 103</p> 104 105<H2>Description</H2> 106<p> 107The VFDta structure is a structure used for the processing of file searches.<br>Editing the internal members when using the VFDta structure is prohibited because the search process may not operate correctly. 108</p> 109 110<h2>See Also</h2> 111<p> 112<code><a href="./VFFileSearchFirst.html">VFFileSearchFirst</a></code></code> 113</p> 114 115<H2>Revision History</H2> 116<p>2006/10/27 Release.</p> 117 118 119<hr><p>CONFIDENTIAL</p></body> 120</html> 121