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