Reputation: 1
I am developing the system driver for Windows 10 and trying to pass the ApiValidator.
I can pass the ApiValidator in VS2019 environment. But I can't pass it in HLK environment.
I am getting ApiValidation: Error: XXX.sys has unsupported API call to "ntoskrnl.exe!KeGetCurrentIrql"
issue in HLK environment.
Environments:
I think the problem is because the UniversalDDIs.xml
file of HLK is older than the UniversalDDIs.xml
file of VS2019.
I shared the UniversalDDIs.xml files.
VS2019_UniversalDDIs.xml (C:\Program Files (x86)\Windows Kits\10\build\universalDDIs\x64\UniversalDDIs.xml)
HLK_UniversalDDIs.xml (C:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\ApiValidator\amd64_UniversalDDIs.xml)
Could you help me with?
Thank you
Li
Upvotes: 0
Views: 571
Reputation: 593
Specify in your .vcxproj
file, in PropertyGroup Label="Globals"
entry:
<ApiValidator_Enable>false</ApiValidator_Enable>
Upvotes: 0