admin管理员组文章数量:1404344
I am attempting to use the RestartManager
to address if files are open in a directory prior to deleting said directory, I found a post from Raymond Chen discussing the RestartManager.h
within the Win API /?p=8283
Is the a efficient way to utilize this in C# or is there an existing wrapper in .NET?
I've gone through a lot of the existing question relating to checking the file permissions and System.IO.File.GetAccessControl
but it seems checking if a file is able to be deleted seems quite difficult.
Are there inbuild systems to use the Win API / .NET to access this information prior to deletion?
本文标签: netIn C is there a behavior that acts similar to the Restart Manager from the Win APIStack Overflow
版权声明:本文标题:.net - In C# is there a behavior that acts similar to the Restart Manager from the Win API? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744788078a2625121.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论