Li Wei
Li Wei

Reputation: 1

How to fix the ApiValidator issue (ApiValidation: Error: XXX.sys has unsupported API call to "ntoskrnl.exe!KeGetCurrentIrql")

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.

Could you help me with?

Thank you

Li

Upvotes: 0

Views: 571

Answers (1)

nonForgivingJesus
nonForgivingJesus

Reputation: 593

Specify in your .vcxproj file, in PropertyGroup Label="Globals" entry:

<ApiValidator_Enable>false</ApiValidator_Enable>

Upvotes: 0

Related Questions