On 8/2/25 18:17, Mohamed Mediouni wrote:
@@ -414,8 +424,12 @@ static bool load_whp_dispatch_fns(HMODULE *handle,
LIST_WINHVPLATFORM_FUNCTIONS(WHP_LOAD_FIELD)
break;
case WINHV_EMULATION_FNS_DEFAULT:
+#ifdef __x86_64__
WHP_LOAD_LIB(WINHV_EMULATION_DLL, hLib)
LIST_WINHVEMULATION_FUNCTIONS(WHP_LOAD_FIELD)
+#else
+ abort();
+#endif
break;
BTW, are there import libraries for these?
If not, could we use dlltool or something to create one at build time?
Since they are required for whpx to function, I just thought it might be easier to have
them auto-loaded with the executable, and functions dispatched by the linker, rather than
go through whp_dispatch.
r~