No navigation frame on the left?  Click here.

NetSessionEnum

The NetSessionEnum() sample demonstrates the function of the same name, listing sessions on a particular server. Filtering is by client machine name, user name, or both.

nsesse.cpp, 2 KB

Here is the same, simplified and for Win9x only.  I am not in the habit of posting code that I didn't even run once, but I was asked for this, and I do not have a Win9x machine to test on.  If you find any problems with this sample, please let me know -- my email address and a link to the feedback page are on every page.  Thanks!

nsesse95.cpp, 3 KB