从 WinAPI 文件更改通知获取额外信息

发布于 2024-09-12 03:57:25 字数 279 浏览 3 评论 0原文

MSDN 有一个非常好的示例 当文件或目录更改时收到通知。

但是,我找不到任何方法来获取额外信息,例如与更改通知关联的用户/计算机名称。

例如,我在我的机器上设置了一个共享 X:\Foo。我想记录对我的共享目录进行更改的用户/计算机名称。

这有可能实现吗?

The MSDN has a pretty good example of getting notified when a file or directory is changed.

However, I can't find any way to get extra information such as the user/machine name associated with the change notification.

For example, I've setup a share X:\Foo from my machine. I would like to log the user/machine names that make changes to my shared directory.

Is this possible to accomplish?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光礼记 2024-09-19 03:57:25

您不能使用 FFCN。您可以在共享目录中的文件上设置安全描述符,以使文件访问记录到事件日志中。

此知识库文章提供了有关如何启用文件审核的一些信息。

You can't using FFCN. You can set the security descriptor on the files in the shared directory to cause file accesses to be logged to the event log.

This KB article has some information about how to enable auditing on files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文