A monitor for open networkfiles?
-
hi, im searching for the class that allows me to readin the network files and session informations. under "fsmgmt.msc" i can see that connections but how can i get these in a programm? i have searched under System.Diagnostics but no result :(
-
hi, im searching for the class that allows me to readin the network files and session informations. under "fsmgmt.msc" i can see that connections but how can i get these in a programm? i have searched under System.Diagnostics but no result :(
There are two ways: Use Interop Services and Windows API to do this, see Networking and Directory Services, plus a slew of other native OS functions... Or the easy way...query the WMI...System.Management Namespace, specifically the SelectQuery Class. A good reference for can be found here. With WMI, you query and do all kinds of things which are beyond the scope of this answer...just a taste of some of the things you can query:
- Computer System Hardware Classes
- Operating System Classes (You'll be real interested in this one for what you're looking for.)
Good luck!
Ian Mariano - http://www.ian-space.com/
"We are all wave equations in the information matrix of the universe" - me