Skip to content

Instantly share code, notes, and snippets.

@sean-m
Created September 24, 2014 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sean-m/88e74171cd2d07a4c608 to your computer and use it in GitHub Desktop.
Save sean-m/88e74171cd2d07a4c608 to your computer and use it in GitHub Desktop.
C# native interop function which calls NetDfsEnum and returns a list of structs representing the DFS links. You get the name and a string[] of the link's targets for each DFS link in the namespace. I check and only return the links which are in a valid state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment