How can I write a program to emulate NET SHARE?
Posted on 1998-04-17
The Windows NT NET SHARE command displays a list of shares on the current system including the admin shares (C$, etc). How can I get those values from a program (other than parsing the output of NET SHARE)? I know about WNetOpenEnum and the related routines but I can't find a way to get the admin shares from that interface. I don't care about getting the information remotely, it is acceptable to be on a machine to run the code.
Sample code would be nice, but just pointers to the routine names would be useful.