Skip to content

CreateFile2 doesn't support OS below Win8 #1265

@tim4864

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

    bugBug, regression, crash

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions