SearchRec Structure

MDD File System Interface Library

MDDFS Interface Library Help
SearchRec Structure
C
typedef struct {
  char filename[FILE_NAME_SIZE_8P3 + 2];
  unsigned char attributes;
  unsigned long filesize;
  unsigned long timestamp;
  BOOL AsciiEncodingType;
  unsigned short int * utf16LFNfound;
  unsigned short int utf16LFNfoundLength;
  unsigned int entry;
  char searchname[FILE_NAME_SIZE_8P3 + 2];
  unsigned char searchattr;
  unsigned long cwdclus;
  unsigned char initialized;
} SearchRec;
Description

The SearchRec structure is used when searching for file on a device. It contains parameters that will be loaded with file information when a file is found. It also contains the parameters that the user searched for, allowing further searches to be perfomed in the same directory for additional files that meet the specified criteria.

Members
Members 
Description 
char filename[FILE_NAME_SIZE_8P3 + 2]; 
The name of the file that has been found 
unsigned char attributes; 
The attributes of the file that has been found 
unsigned long filesize; 
The size of the file that has been found 
unsigned long timestamp; 
The last modified time of the file that has been found (create time for directories) 
BOOL AsciiEncodingType; 
Ascii file name or Non-Ascii file name indicator 
unsigned short int * utf16LFNfound; 
Pointer to long file name found in UTF16 format 
unsigned short int utf16LFNfoundLength; 
LFN Found length in terms of words including the NULL word at the last. 
unsigned int entry; 
The directory entry of the last file found that matches the specified attributes. (Internal use only) 
char searchname[FILE_NAME_SIZE_8P3 + 2]; 
The 8.3 format name specified when the user began the search. (Internal use only) 
unsigned char searchattr; 
The attributes specified when the user began the search. (Internal use only) 
unsigned long cwdclus; 
The directory that this search was performed in. (Internal use only) 
unsigned char initialized; 
Check to determine if the structure was initialized by FindFirst (Internal use only) 
Microchip MDD File System Interface 1.4.2 - [Oct 15, 2012]
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.