Changeset 45901 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray
- Timestamp:
- May 6, 2013 7:28:23 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85524
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r45853 r45901 1085 1085 { 1086 1086 gVBoxSt.hWTSAPIWnd = hWnd; 1087 if (!gVBoxSt.pfnWTSRegisterSessionNotification(gVBoxSt.hWTSAPIWnd, NOTIFY_FOR_THIS_SESSION)) 1087 if (gVBoxSt.pfnWTSRegisterSessionNotification(gVBoxSt.hWTSAPIWnd, NOTIFY_FOR_THIS_SESSION)) 1088 { 1089 vboxStCheckState(); 1090 } 1091 else 1088 1092 { 1089 1093 DWORD dwErr = GetLastError(); … … 1093 1097 gVBoxSt.idDelayedInitTimer = SetTimer(gVBoxSt.hWTSAPIWnd, TIMERID_VBOXTRAY_ST_DELAYED_INIT_TIMER, 2000, (TIMERPROC)NULL); 1094 1098 rc = VINF_SUCCESS; 1099 1100 gVBoxSt.fIsConsole = TRUE; 1101 gVBoxSt.enmConnectState = WTSActive; 1095 1102 } 1096 1103 else … … 1099 1106 1100 1107 if (RT_SUCCESS(rc)) 1101 {1102 vboxStCheckState();1103 1108 return VINF_SUCCESS; 1104 }1105 1109 } 1106 1110 … … 1177 1181 KillTimer(gVBoxSt.hWTSAPIWnd, gVBoxSt.idDelayedInitTimer); 1178 1182 gVBoxSt.idDelayedInitTimer = 0; 1183 vboxStCheckState(); 1179 1184 } 1180 1185 else … … 1182 1187 DWORD dwErr = GetLastError(); 1183 1188 WARN(("VBoxTray: timer WTSRegisterSessionNotification failed, error = %08X\n", dwErr)); 1184 } 1185 1186 vboxStCheckState(); 1189 Assert(gVBoxSt.fIsConsole == TRUE); 1190 Assert(gVBoxSt.enmConnectState == WTSActive); 1191 } 1192 1187 1193 return TRUE; 1188 1194 }
Note:
See TracChangeset
for help on using the changeset viewer.