Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
946 B

  1. typedef struct _finddata_t SysFindData;
  2. struct MyFindDataStruct
  3. {
  4. unsigned attrib; // File attribute
  5. time_t time_create; // Time of file creation ( �1L for FAT file systems)
  6. time_t time_access; // Time of last file access (�1L for FAT file systems)
  7. time_t time_write; // Time of last write to file
  8. unsigned long size; // Length of file in bytes
  9. char * name; // Null-terminated name of matched file/directory, without the path
  10. char * ShortName;
  11. };
  12. typedef struct MyFindDataStruct finddata;
  13. #define ALL_FILES 0xff
  14. #define STRING_TABLE_SIZE 100000
  15. int InitStringTable(long size);
  16. void EndStringTable();
  17. void AddString(char * s, finddata * f);
  18. long GetStringTableSize();
  19. void ResetStringTable();
  20. int FindFirst(char * ss, unsigned attr, intptr_t * hFile, finddata * s);
  21. int FindNext(int attr, intptr_t hFile, finddata * s);