Skip to content

CreateFile2 doesn't support OS below Win8 #1265

Closed

Description

@tim4864

I suppose that CreateFile2 which used in dxc.cpp, dxcapi.use.cpp, and dxc_batch.cpp should be used in the definition of #if _WIN32_WINNT >= _WIN32_WINNT_WIN8, just like the following file does:
https://github.com/Microsoft/DirectXTex/blob/master/DirectXTex/DirectXTexTGA.cpp
And otherwise calls CreateFileW instead.

In my use case, there's a build server which still uses Win7, and manual fix is needed every time when I pull the latest version.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions