Using LockFileEX in C#

后端 未结 2 1951
既然无缘
既然无缘 2020-12-15 12:03

Background

I\'m trying to implement block file locking in my C# application. The built-in FileStream.Lock method throws an exception if it is unable to acquire th

2条回答
  •  抹茶落季
    2020-12-15 12:49

    Reflector has the answer (and pinvoke.net and http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/7217a8d3-d36d-43c9-ad4f-ad638a9ac1de have the declarations)

提交回复
热议问题