void VBoxSeamlessInstallHook() { if (gCtx.pfnVBoxHookInstallWindowTracker) { /* Check current visible region state */ VBoxSeamlessCheckWindows(); gCtx.pfnVBoxHookInstallWindowTracker(gCtx.hModule); } }
static void VBoxSeamlessInstallHook() { if (gCtx.pfnVBoxHookInstallWindowTracker) { /* Check current visible region state */ VBoxSeamlessCheckWindows(true); HMODULE hMod = (HMODULE)RTLdrGetNativeHandle(gCtx.hModHook); Assert(hMod != (HMODULE)~(uintptr_t)0); gCtx.pfnVBoxHookInstallWindowTracker(hMod); } }