There is a confusion with dxva.h and dxva2api.h in Visual Studio headers and wine headers. I will recheck it. BTW, are you using mingw-w64 headers, the paths are suggesting that? I will check that also.