Use FILE_SHARE_READ to open the file in GetBinaryTypeA.