MSVC: read file content type from registry