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
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)