One notable feature that is missing from the IO section of the .NET base class library is a way to check if a file is locked. When opening a file the OpenFile et al API methods does actually provide the information, we just have to dig a little to discover it.