No navigation frame on the left?  Click here.

NetConnectionEnum

 

There is, right now, no documented way to list the users connected to a share or the shares in use by a client computer. Then how does the Server control panel applet do it? Why, with smoke and mirrors, of course. And with "obsolete" functions; but as long as they work for Microsoft, they will work for you and me. And now, without further ado:

nconne.cpp, 2 KB