VirtualBox

Changeset 40445 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Mar 13, 2012 2:34:27 PM (13 years ago)
Author:
vboxsync
Message:

VBoxService/VMInfo-win: Don't skip CachedInteractive sessions, be more verbose on why certain sessions were skipped.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp

    r40158 r40445  
    587587    }
    588588
     589    VBoxServiceVerbose(3, "Session data: Name=%ls, Session=%u, LogonID=%ld,%ld, LogonType=%ld\n",
     590                       pSessionData->UserName.Buffer,
     591                       pSessionData->Session,
     592                       pSessionData->LogonId.HighPart, pSessionData->LogonId.LowPart,
     593                       pSessionData->LogonType);
     594
    589595    /*
    590596     * Only handle users which can login interactively or logged in
     
    595601    if (   IsValidSid(pSessionData->Sid)
    596602        && (   (SECURITY_LOGON_TYPE)pSessionData->LogonType == Interactive
    597             || (SECURITY_LOGON_TYPE)pSessionData->LogonType == RemoteInteractive))
    598     {
    599         VBoxServiceVerbose(3, "Session data: Name=%ls, Session=%u, LogonID=%ld,%ld, LogonType=%ld\n",
    600                            pSessionData->UserName.Buffer,
    601                            pSessionData->Session,
    602                            pSessionData->LogonId.HighPart, pSessionData->LogonId.LowPart,
     603            || (SECURITY_LOGON_TYPE)pSessionData->LogonType == RemoteInteractive
     604            /* Note: We also need CachedInteractive in case Windows cached the credentials
     605             *       or just wants to reuse them! */
     606            || (SECURITY_LOGON_TYPE)pSessionData->LogonType == CachedInteractive))
     607    {
     608        VBoxServiceVerbose(3, "Session LogonType=%ld is supported -- looking up SID + type ...\n",
    603609                           pSessionData->LogonType);
    604610
     
    697703                }
    698704            }
     705            else
     706                VBoxServiceVerbose(3, "SID owner type=%d not handled, skipping\n",
     707                                   enmOwnerType);
    699708        }
    700709
     
    771780            for (ULONG i = 0; i < cSessions; i++)
    772781            {
     782                VBoxServiceVerbose(3, "Handling session %u\n", i);
     783
    773784                VBOXSERVICEVMINFOUSER UserInfo;
    774785                if (VBoxServiceVMInfoWinIsLoggedIn(&UserInfo, &paSessions[i]))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette