问题
Is there a simple way to tell if a given path lives on a mapped network drive? Or to tell if a given drive is a mapped network drive?
I hoped they would have a reparse point attribute but GetFileAttributes() returns nothing but a directory flag.
回答1:
GetDriveType is one option.
回答2:
Did you try GetFileAttributesEx() with GetFileExMaxInfoLevel ?
来源:https://stackoverflow.com/questions/3517175/detecting-if-path-is-on-a-windows-mapped-network-drive