VirtualBox

Ignore:
Timestamp:
Oct 9, 2008 12:13:02 PM (16 years ago)
Author:
vboxsync
Message:

Additions/Windows: guest property fix for LoggedInUsersList and new NoLoggedInUsers property which only gets updated when transitioning from/to no users. Important for timestamp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxVMInfo.cpp

    r12810 r13127  
    8080    gCtx.pEnv = pEnv;
    8181    gCtx.fFirstRun = TRUE;
     82    gCtx.iUserCount = INT32_MAX; /* value which isn't reached in real life. */
    8283
    8384    int rc = VbglR3GuestPropConnect(&gCtx.iInfoSvcClientID);
     
    115116     * Needs to be replaced with "temporary properties" later. */
    116117
    117     vboxVMInfoWriteProp(pCtx, "GuestInfo/OS/LoggedInUsersList", "");
     118    vboxVMInfoWriteProp(pCtx, "GuestInfo/OS/LoggedInUsersList", NULL);
    118119    vboxVMInfoWritePropInt(pCtx, "GuestInfo/OS/LoggedInUsers", 0);
     120    if (pCtx->iUserCount != 0)
     121        vboxVMInfoWriteProp(pCtx, "GuestInfo/OS/NoLoggedInUsers", "true");
    119122
    120123    const char *apszPat[1] = { "/VirtualBox/GuestInfo/Net/*" };
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