lib.exe /def:winhv.def /OUT:winhv.lib /machine:x64
winhv.def注意是 winhv.sys要不然会变成dll
LIBRARY winhv.sys
EXPORTS
WinHvAllocateOverlayPages
WinHvDisablePartitionVtl
WinHvDisableVpVtl
WinHvEnablePartitionVtl
WinHvEnableVpVtl
WinHvFreeOverlayPages
WinHvGetCurrentVpIndex
WinHvGetSintEventFlags
WinHvGetSintMessage
WinHvGetVpRegisters
WinHvNtProcessorToVpIndex
WinHvPostMessage
WinHvProcessorNumberToVpIndex
WinHvSetSint
WinHvSetSintOnCurrentProcessor
WinHvSetVpRegisters
WinHvSignalEvent
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 KHV.sys has unsupported API call to “winhv.sys!WinHvPostMessage” KHV E:\git\HyperVCVE\KHV\KHV\ApiValidation 1
Specify in your .vcxproj file, in PropertyGroup Label="Globals" entry:
<ApiValidator_Enable>false</ApiValidator_Enable>