Source code of Windows XP (NT5)
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.

38 lines
1.0 KiB

  1. /* lfn.h -
  2. *
  3. * declaration of lfn aware functions
  4. */
  5. #define CCHMAXFILE 260 // max size of a long name
  6. #define FILE_83_CI 0
  7. #define FILE_83_CS 1
  8. #define FILE_LONG 2
  9. #define ERROR_OOM 8
  10. /* we need to add an extra field to distinguish DOS vs. LFNs
  11. */
  12. typedef struct
  13. {
  14. HANDLE hFindFile; // handle returned by FindFirstFile()
  15. DWORD dwAttrFilter; // search attribute mask.
  16. DWORD err; // error info if failure.
  17. WIN32_FIND_DATA fd; // FindFirstFile() data strucrure;
  18. } LFNDTA, FAR * LPLFNDTA, * PLFNDTA;
  19. VOID APIENTRY LFNInit( VOID );
  20. VOID APIENTRY InvalidateVolTypes( VOID );
  21. WORD APIENTRY GetNameType(LPSTR);
  22. BOOL APIENTRY IsLFN(LPSTR pName);
  23. //BOOL APIENTRY IsLFNDrive(WORD);
  24. BOOL APIENTRY WFFindFirst(LPLFNDTA lpFind, LPSTR lpName, DWORD dwAttrFilter);
  25. BOOL APIENTRY WFFindNext(LPLFNDTA);
  26. BOOL APIENTRY WFFindClose(LPLFNDTA);
  27. BOOL APIENTRY WFIsDir(LPSTR);
  28. BOOL APIENTRY LFNMergePath(LPSTR,LPSTR);
  29. BOOL APIENTRY IsLFNSelected(VOID);