c - How to iterate over long path names with any form of the Windows API -


i have files on server exceed max_path limit. i've repeatedly heard can list files pre-pending \\?\ path. however, doesn't solve problem findfirstfile[ex] , partners use data structure limits file name length max_path.

is there other way iterate on directory structure find files have name long? i've seen utilities none of them available in source form.

note have seen blog entries .net bcl folks , followed links provide.

i'd prefer in c or c++ simplicity freely available language now.

pointers code, docs or useful appreciated.

i don't think there's problem here. referring win32_find_data indeed return filenames limited in length max_path. since filename part, , path omitted, there no limitation.

within directory, object (file or folder) limited in length, typically 255 characters. can determine limit lpmaximumcomponentlength parameter of getvolumeinformation. i'd surprised if volume mounted in windows have maximum component length in excess of 255.

the call findfirstfile receives null-terminates string, lpfilename specifies directory , filename (e.g. "*.txt", say) search. documentation states:

in ansi version of function, name limited max_path characters. extend limit 32,767 widecharacters, call unicode version of function , prepend "\\?\" path.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -