The function wasn't available in original W10 so may need to check windows DDK version too i.e. add
#if NTDDI_VERSION >= NTDDI_WIN10_RS2
to the other macro checks.
The failed build is also an old Visual Studio, maybe the option isn't enabled in the MS header for that old a VC? If so then there would need to be a check on the value of the _MSC_VER macro too.
I think the header is there, two possibilities:
The function wasn't available in original W10 so may need to check windows DDK version too i.e. add
#if NTDDI_VERSION >= NTDDI_WIN10_RS2
to the other macro checks.
The failed build is also an old Visual Studio, maybe the option isn't enabled in the MS header for that old a VC? If so then there would need to be a check on the value of the _MSC_VER macro too.