That doesn't seem to match what Windows does.
Yeah. I didn't explicitly verify this, but I think including just d3d10shader.h simply doesn't work with the PSDK. The background on this is that Alistair ran into this issue while doing the vkd3d import for staging, specifically replacing a vkd3d_d3d10shader.h include with a d3d10shader.h include. The more straightforward way to address that is to replace that include with a d3d10.h include instead; I don't think the changes in this MR are incompatible with the PSDK headers though. (And for some more background, the d3dcommon.h header didn't use to exist in earlier DirectX SDKs, IIRC it was introduced with Direct3D 11.) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11239#note_144084