Enumerating File Handles in C#

前端 未结 4 1945
耶瑟儿~
耶瑟儿~ 2021-01-18 03:24

I would like to know whether it is possible to enumerate file handles in c#, maybe using Win32API. This is easily done for window and process handles, but it seems that it

4条回答
  •  独厮守ぢ
    2021-01-18 04:08

    I found a working example of listing file handles with names in C# here...

    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/ac990847-6d04-4ae0-aafe-8355bbc3f769

    Scroll down to the last thread and follow the link there. And be forewarned, once you download the code, the comments are in French. Just so happens I'm taking French, so I can make sense of most of it.

提交回复
热议问题