Lines Matching defs:gVBoxSt

1197 static VBOXST gVBoxSt;
1205 if (gVBoxSt.pfnWTSQuerySessionInformationA(WTS_CURRENT_SERVER_HANDLE, WTS_CURRENT_SESSION, WTSConnectState,
1208 if (gVBoxSt.pfnWTSQuerySessionInformationA(WTS_CURRENT_SERVER_HANDLE, WTS_CURRENT_SESSION, WTSClientProtocolType,
1211 gVBoxSt.fIsConsole = (*pProtocolType == 0);
1212 gVBoxSt.enmConnectState = *penmConnectState;
1228 gVBoxSt.fIsConsole = TRUE;
1229 gVBoxSt.enmConnectState = WTSActive;
1236 RT_ZERO(gVBoxSt);
1237 int rc = RTLdrLoadSystem("WTSAPI32.DLL", false /*fNoUnload*/, &gVBoxSt.hLdrModWTSAPI32);
1240 rc = RTLdrGetSymbol(gVBoxSt.hLdrModWTSAPI32, "WTSRegisterSessionNotification",
1241 (void **)&gVBoxSt.pfnWTSRegisterSessionNotification);
1244 rc = RTLdrGetSymbol(gVBoxSt.hLdrModWTSAPI32, "WTSUnRegisterSessionNotification",
1245 (void **)&gVBoxSt.pfnWTSUnRegisterSessionNotification);
1248 rc = RTLdrGetSymbol(gVBoxSt.hLdrModWTSAPI32, "WTSQuerySessionInformationA",
1249 (void **)&gVBoxSt.pfnWTSQuerySessionInformationA);
1260 gVBoxSt.hWTSAPIWnd = hWnd;
1261 if (gVBoxSt.pfnWTSRegisterSessionNotification(gVBoxSt.hWTSAPIWnd, NOTIFY_FOR_THIS_SESSION))
1269 gVBoxSt.idDelayedInitTimer = SetTimer(gVBoxSt.hWTSAPIWnd, TIMERID_VBOXTRAY_ST_DELAYED_INIT_TIMER,
1271 gVBoxSt.fIsConsole = TRUE;
1272 gVBoxSt.enmConnectState = WTSActive;
1283 RTLdrClose(gVBoxSt.hLdrModWTSAPI32);
1288 RT_ZERO(gVBoxSt);
1289 gVBoxSt.fIsConsole = TRUE;
1290 gVBoxSt.enmConnectState = WTSActive;
1296 if (!gVBoxSt.hWTSAPIWnd)
1302 if (gVBoxSt.idDelayedInitTimer)
1305 KillTimer(gVBoxSt.hWTSAPIWnd, gVBoxSt.idDelayedInitTimer);
1306 gVBoxSt.idDelayedInitTimer = 0;
1310 if (!gVBoxSt.pfnWTSUnRegisterSessionNotification(gVBoxSt.hWTSAPIWnd))
1317 RTLdrClose(gVBoxSt.hLdrModWTSAPI32);
1318 RT_ZERO(gVBoxSt);
1344 if (wEvent != gVBoxSt.idDelayedInitTimer)
1347 if (gVBoxSt.pfnWTSRegisterSessionNotification(gVBoxSt.hWTSAPIWnd, NOTIFY_FOR_THIS_SESSION))
1349 KillTimer(gVBoxSt.hWTSAPIWnd, gVBoxSt.idDelayedInitTimer);
1350 gVBoxSt.idDelayedInitTimer = 0;
1357 Assert(gVBoxSt.fIsConsole == TRUE);
1358 Assert(gVBoxSt.enmConnectState == WTSActive);
1377 return (gVBoxSt.enmConnectState == WTSActive && gVBoxSt.fIsConsole);