Maximum filename length in NTFS (Windows XP and Windows Vista)?

前端 未结 14 1826
再見小時候
再見小時候 2020-11-22 14:46

I\'m designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename in NTFS as used by Windows XP or Vista?

14条回答
  •  臣服心动
    2020-11-22 15:40

    According to the new Windows SDK documentation (8.0) it seems that a new path limit is provided. There is a new set of path handling functions and an definition of PATHCCH_MAX_CCH like follows:

    // max # of characters we support using the "\\?\" syntax
    // (0x7FFF + 1 for NULL terminator)
    #define PATHCCH_MAX_CCH             0x8000
    

提交回复
热议问题