获取访问共享资源的用户名 [英] Get UserName who access shared resource

查看:102
本文介绍了获取访问共享资源的用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想获取正在访问共享文件夹中文件的用户名.我已经使用filesystemwatcher类监视文件夹,但是无法获取正在访问文件的用户名.通过什么方法我可以实现自己的目标?

在此先谢谢您.

Hi,
I want to fetch the user''s name who were accessing the files in a shared folder. I already used filesystemwatcher class to monitor the folder, But unable to get the user''s name who were accessing the files. Through what methodology i can able to achieve my goal?

Thanks in Advance.

推荐答案

您无法使用filesystemwatcher监视谁正在访问文件.

您需要编写一个挂接到OS的应用程序,以监视所有文件系统调用.这不是一件容易的事.
You cannot monitor who is accessing a file using the filesystemwatcher.

You would need to write an application that hooks into the OS to monitor all file system calls. And that is not so easy a task.


这篇关于获取访问共享资源的用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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