I've always used the CreateFile API to get a file handle, which I can then pass into the GetFileTime API to get the file times. This works fine until I tried to get a file handle to a Microsoft Access Database file which was open in Access.
Is there another way of getting a file handle that won't fail if the file is locked?
