views:

142

answers:

0

I refer to this:

http://stackoverflow.com/questions/1448384/monitor-windows-share

I am opening a new thread because I feel that thread is very unclear in both question and content.

I am in Windows XP using .NET 2.0 VS2008 C# and managed C++.

The question is how exactly to monitor the number and nature of open connections to a windows network share from remote machines requesting files.

There is some WMI code in the thread above but nothing clear as to how this might be used in .NET or what type of object it would return from that query. The links to MSDN provide no further useful pointers as to how to use the WMI code cited.

The question arises because I am designing a custom server in .NET to serve files to clients using network shares on the server. Rather than serve the files directly via remoting, I am considering the option of letting windows do the actual file serving via a share (albeit limited to perhaps 5 or 10 connections depending on the version) and controlling the number of applications from remote clients based on information on the number of currently open connections to the share.