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.
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.