开发者

Detecting if path is on a windows mapped network drive

开发者 https://www.devze.com 2023-01-12 08:37 出处:网络
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?

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.


GetDriveType is one option.


Did you try GetFileAttributesEx() with GetFileExMaxInfoLevel ?

0

精彩评论

暂无评论...
验证码 换一张
取 消