VirtualBox

Changeset 40866 in vbox


Ignore:
Timestamp:
Apr 11, 2012 9:36:34 AM (13 years ago)
Author:
vboxsync
Message:

VBoxTray: configuration for guest property monitor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp

    r40863 r40866  
    4545
    4646    bool fLogEnabled;
     47    bool fDetachOnDisconnect;
    4748
    4849    uint32_t u32GuestPropHandle;  /* The client identifier of the guest property system. */
     
    11451146    LALOG(("VBoxTray: VBoxLAInit\n"));
    11461147
     1148    dwValue = 0;
     1149    if (   laGetRegistryDWORD(L"SOFTWARE\\Oracle\\VirtualBox Guest Additions", L"VBoxTrayLA", &dwValue)
     1150        && (dwValue & 0x02) != 0)
     1151    {
     1152         gCtx.fDetachOnDisconnect = true;
     1153    }
     1154    else
     1155    {
     1156         gCtx.fDetachOnDisconnect = false;
     1157    }
     1158
     1159    LALOG(("VBoxTray: VBoxLAInit: VBoxTrayLA %x\n", dwValue));
     1160
    11471161    int rc = VbglR3GuestPropConnect(&gCtx.u32GuestPropHandle);
    11481162    if (RT_FAILURE(rc))
     
    12731287                {
    12741288                    /* If the client has been disconnected, do the detach actions. */
    1275                     if (fClientIdChanged)
     1289                    if (   pCtx->fDetachOnDisconnect
     1290                        && fClientIdChanged)
    12761291                    {
    12771292                        LALOG(("LA: client disconnected\n"));
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