最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

.net - In C# is there a behavior that acts similar to the Restart Manager from the Win API? - Stack Overflow

programmeradmin0浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论