windows-nt/Source/XPSP1/NT/inetsrv/iis/setup/util/dirminus/filefind.h
2020-09-26 16:20:57 +08:00

27 lines
848 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

typedef struct _finddata_t SysFindData;
struct MyFindDataStruct
{
unsigned attrib; // File attribute
time_t time_create; // Time of file creation ( 1L for FAT file systems)
time_t time_access; // Time of last file access (1L for FAT file systems)
time_t time_write; // Time of last write to file
unsigned long size; // Length of file in bytes
char * name; // Null-terminated name of matched file/directory, without the path
char * ShortName;
};
typedef struct MyFindDataStruct finddata;
#define ALL_FILES 0xff
#define STRING_TABLE_SIZE 100000
int InitStringTable(long size);
void EndStringTable();
void AddString(char * s, finddata * f);
long GetStringTableSize();
void ResetStringTable();
int FindFirst(char * ss, unsigned attr, long * hFile, finddata * s);
int FindNext(int attr, long hFile, finddata * s);