Lines Matching defs:gCtx
59 static VBOXSEAMLESSCONTEXT gCtx = {0};
68 gCtx.pEnv = pEnv;
69 gCtx.hModHook = NIL_RTLDRMOD;
87 rc = RTLdrLoadAppPriv(VBOXHOOK_DLL_NAME, &gCtx.hModHook);
90 *(PFNRT *)&gCtx.pfnVBoxHookInstallWindowTracker = RTLdrGetFunction(gCtx.hModHook, "VBoxHookInstallWindowTracker");
91 *(PFNRT *)&gCtx.pfnVBoxHookRemoveWindowTracker = RTLdrGetFunction(gCtx.hModHook, "VBoxHookRemoveWindowTracker");
101 *ppInstance = &gCtx;
119 if (gCtx.pfnVBoxHookRemoveWindowTracker)
120 gCtx.pfnVBoxHookRemoveWindowTracker();
121 if (gCtx.hModHook != NIL_RTLDRMOD)
123 RTLdrClose(gCtx.hModHook);
124 gCtx.hModHook = NIL_RTLDRMOD;
131 if (gCtx.pfnVBoxHookInstallWindowTracker)
136 HMODULE hMod = (HMODULE)RTLdrGetNativeHandle(gCtx.hModHook);
138 gCtx.pfnVBoxHookInstallWindowTracker(hMod);
144 if (gCtx.pfnVBoxHookRemoveWindowTracker)
145 gCtx.pfnVBoxHookRemoveWindowTracker();
147 if (gCtx.lpEscapeData)
149 free(gCtx.lpEscapeData);
150 gCtx.lpEscapeData = NULL;
163 VBoxDispIfSeamlesCreate(&gCtx.pEnv->dispIf, &gVBoxDispIfSeamless, ghSeamlessKmNotifyEvent);
316 LPRGNDATA lpCtxRgnData = VBOXDISPIFESCAPE_DATA(gCtx.lpEscapeData, RGNDATA);
318 || !gCtx.lpEscapeData
325 if (gCtx.lpEscapeData)
326 free(gCtx.lpEscapeData);
327 gCtx.lpEscapeData = lpEscapeData;
332 if (lpEscapeData != gCtx.lpEscapeData)