Changeset 38313 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 4, 2011 1:14:56 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxGINA
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxGINA/Helper.cpp
r38310 r38313 99 99 bool handleCurrentSession(void) 100 100 { 101 /* Load global configuration from registry. */ 102 DWORD dwRet = loadConfiguration(); 103 if (ERROR_SUCCESS != dwRet) 104 LogRel(("VBoxGINA::handleCurrentSession: Error loading global configuration, error=%ld\n", dwRet)); 105 101 106 bool fHandle = false; 102 107 if (isRemoteSession()) … … 107 112 else /* No remote session. */ 108 113 fHandle = true; 114 115 if (!fHandle) 116 LogRel(("VBoxGINA::handleCurrentSession: Handling of remote desktop sessions is disabled.\n")); 117 109 118 return fHandle; 110 119 } -
trunk/src/VBox/Additions/WINNT/VBoxGINA/VBoxGINA.cpp
r38290 r38313 109 109 #ifdef DEBUG_andy 110 110 /* Enable full log output. */ 111 RTLogGroupSettings( RTLogRelDefaultInstance(), "+default.e.l.f.l2.l3");111 RTLogGroupSettings(0, "+autologon.e.l.f.l2.l3"); 112 112 #endif 113 113 … … 231 231 wlxVersion = dwWinlogonVersion; 232 232 233 /* forward call */ 234 return GWlxNegotiate(dwWinlogonVersion, pdwDllVersion); 233 /* Acknowledge interface version. */ 234 if (pdwDllVersion) 235 *pdwDllVersion = dwWinlogonVersion; 236 237 return TRUE; /* We're ready to rumble! */ 235 238 } 236 239 … … 241 244 Log(("VBoxGINA::WlxInitialize\n")); 242 245 243 /* store Winlogon function table */246 /* Store Winlogon function table */ 244 247 pWlxFuncs = (PWLX_DISPATCH_VERSION_1_1)pWinlogonFunctions; 245 248 246 /* store handle to Winlogon service*/249 /* Store handle to Winlogon service*/ 247 250 hGinaWlx = hWlx; 248 251 249 /* Load global configuration from registry. */ 250 DWORD dwRet = loadConfiguration(); 251 if (ERROR_SUCCESS != dwRet) 252 LogRel(("VBoxGINA: Error loading global configuration, error=%ld\n", dwRet)); 253 254 /* If we have a remote session (that is, a connection via remote desktop / 255 * terminal services) deny it if not specified explicitly. */ 256 if (!handleCurrentSession()) 257 LogRel(("VBoxGINA: Handling of remote desktop sessions is disabled.\n")); 258 259 /* hook the dialogs */ 252 /* Hook the dialogs */ 260 253 hookDialogBoxes(pWlxFuncs, wlxVersion); 261 254 262 /* forward call */255 /* Forward call */ 263 256 return GWlxInitialize(lpWinsta, hWlx, pvReserved, pWinlogonFunctions, pWlxContext); 264 257 } … … 269 262 Log(("VBoxGINA::WlxDisplaySASNotice\n")); 270 263 271 /* check if there are credentials for us, if so simulate C-A-D */264 /* Check if there are credentials for us, if so simulate C-A-D */ 272 265 if (credentialsAvailable()) 273 266 { 274 267 Log(("VBoxGINA::WlxDisplaySASNotice: simulating C-A-D\n")); 275 /* automatic C-A-D */268 /* Wutomatic C-A-D */ 276 269 pWlxFuncs->WlxSasNotify(hGinaWlx, WLX_SAS_TYPE_CTRL_ALT_DEL); 277 270 } … … 293 286 Log(("VBoxGINA::WlxLoggedOutSAS\n")); 294 287 295 /* when performing a direct logon without C-A-D, our poller might not be running */288 /* When performing a direct logon without C-A-D, our poller might not be running */ 296 289 if (!credentialsAvailable()) 297 290 credentialsPollerCreate(); … … 304 297 { 305 298 // 306 // copy pMprNotifyInfo and pLogonSid for later use299 // Copy pMprNotifyInfo and pLogonSid for later use 307 300 // 308 301 … … 346 339 Log(("VBoxGINA::WlxDisplayLockedNotice\n")); 347 340 348 /* check if there are credentials for us, if so simulate C-A-D */341 /* Check if there are credentials for us, if so simulate C-A-D */ 349 342 if (credentialsAvailable()) 350 343 { 351 344 Log(("VBoxGINA::WlxDisplayLockedNotice: simulating C-A-D\n")); 352 /* automatic C-A-D */345 /* Automatic C-A-D */ 353 346 pWlxFuncs->WlxSasNotify(hGinaWlx, WLX_SAS_TYPE_CTRL_ALT_DEL); 354 347 } … … 375 368 Log(("VBoxGINA::WlxWkstaLockedSAS\n")); 376 369 377 /* when performing a direct logon without C-A-D, our poller might not be running */370 /* When performing a direct logon without C-A-D, our poller might not be running */ 378 371 if (!credentialsAvailable()) 379 372 credentialsPollerCreate(); … … 385 378 BOOL WINAPI WlxIsLogoffOk(PVOID pWlxContext) 386 379 { 387 BOOL bSuccess;388 389 380 Log(("VBoxGINA::WlxIsLogoffOk\n")); 390 381 391 bSuccess = GWlxIsLogoffOk(pWlxContext); 392 382 BOOL bSuccess = GWlxIsLogoffOk(pWlxContext); 393 383 if (bSuccess) 394 384 { … … 432 422 if (GWlxScreenSaverNotify) 433 423 return GWlxScreenSaverNotify(pWlxContext, pSecure); 434 /* return something intelligent */424 /* Return something intelligent */ 435 425 *pSecure = TRUE; 436 426 return TRUE; … … 442 432 { 443 433 Log(("VBoxGINA::WlxStartApplication: pWlxCtx=%p, pszDesktopName=%ls, pEnvironment=%p, pszCmdLine=%ls\n", 444 pWlxContext, pszDesktopName, pEnvironment, pszCmdLine));434 pWlxContext, pszDesktopName, pEnvironment, pszCmdLine)); 445 435 446 436 /* Forward to MSGINA if present. */ … … 507 497 Log(("VBoxGINA::WlxGetConsoleSwitchCredentials\n")); 508 498 509 /* forward call to MSGINA if present */499 /* Forward call to MSGINA if present */ 510 500 if (GWlxGetConsoleSwitchCredentials) 511 501 return GWlxGetConsoleSwitchCredentials(pWlxContext,pCredInfo);
Note:
See TracChangeset
for help on using the changeset viewer.