pmezard
pmezard

Reputation: 427

Detecting if path is on a windows 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.

Upvotes: 4

Views: 3998

Answers (2)

Luke
Luke

Reputation: 11431

GetDriveType is one option.

Upvotes: 5

kriss
kriss

Reputation: 24207

Did you try GetFileAttributesEx() with GetFileExMaxInfoLevel ?

Upvotes: 0

Related Questions