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.
Activity
Use CreateFileW instead of CreateFile2 for Windows 7 and below
Use CreateFileW instead of CreateFile2 (#1301)
Merge MS/master into google/linux (#249)
Merge MS/master into google/linux (#258)