监视Windows共享 [英] Monitor Windows Share

查看:136
本文介绍了监视Windows共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想分享他们使用C#来监视连接到一个窗口,我是pretty的肯定这是可能的,因为你可以看到人们从Windows控制台管理器连接到你。

I am trying to monitor connections to a windows share using C#, I am pretty sure it’s possible since you can see people connected to you from Windows Console Manager.

虽然我不介意使用WMI我preFER一些替代方法解决。

While I don't mind a solution using WMI I would prefer some alternate method.

当有人被监视的PC或在一个共享的文件上打开一个共享我的意思是连接

What I mean by connections is when someone opens a share on the PC being monitored or a file in a share.

推荐答案

我会建议使用WMI,因为它是专为这个目的。

I would suggest using WMI, since it is designed for this very purpose.

下面是Win32的股份及放大器的MSDN链接; WMI实现:

Here is an MSDN link on Win32 shares & WMI implementation:

Win32_Share类 - MSDN

这篇关于监视Windows共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆