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

I am attempting to use the RestartManager to address if files are open in a directory prior to deleting

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744788079a4593748.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信