Andy Dotson
2004-10-12 23:34:35 UTC
Good afternoon, I've got what I would think is a simple problem.
I've got this DFS head that has say 4 backend servers on it. What I
want to be able to do, is to programically determine the backend file
path from a DFS head link.
For example:
\\dfsmachine\someshare\FooBar actually links to:
\\dfsmachine3\c$\FooBar.
How can I discover the target (2nd line) by knowing the link?? I've
experimented already with the NetDFS API functions...but these only
return me information about the Entry Path (the 1st line). Neither
NetDfsGetInfo or NetDfsGetClientInfo returns me the actualy target.
Am I doin somethin wrong? Is there another API I can use to do this?
It sounds so simple an issue...yet it's eluding me.
Any help is greatly appreciated (I'm writing the code in C# through
pinvoke, however I know a suitable amount of C++ as well).
I've got this DFS head that has say 4 backend servers on it. What I
want to be able to do, is to programically determine the backend file
path from a DFS head link.
For example:
\\dfsmachine\someshare\FooBar actually links to:
\\dfsmachine3\c$\FooBar.
How can I discover the target (2nd line) by knowing the link?? I've
experimented already with the NetDFS API functions...but these only
return me information about the Entry Path (the 1st line). Neither
NetDfsGetInfo or NetDfsGetClientInfo returns me the actualy target.
Am I doin somethin wrong? Is there another API I can use to do this?
It sounds so simple an issue...yet it's eluding me.
Any help is greatly appreciated (I'm writing the code in C# through
pinvoke, however I know a suitable amount of C++ as well).