Is it possible to test for folder redirection in .net? I don't mean reparse points/junctions, I mean when a folder (usually My Documents) is redirected to a server.
In such cases, if you are traversing the folder system of a PC you'll encounter an IO error if you reach the local version of the folder. So it would be useful to be able to test for My Documents folder redirection, so as to be able to take action (skip the folder, jump onto the server etc).
I know I can get the location of My Documents (but only for the current user) using
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
but that doesn't help me test for it in advance across (potentially) multiple users.
Do I need to use something like SHGetKnownFolderPath?