VirtualBox

Changeset 12810 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Sep 29, 2008 4:11:14 PM (16 years ago)
Author:
vboxsync
Message:

VbglR3GuestPropDelTree -> VbglR3GuestPropDelSet, documenting it and adjusting the interface to be easier to use (const strings).

File:
1 edited

Legend:

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

    r12734 r12810  
    112112    Assert(pCtx);
    113113
    114     /* @todo Temporary solution: Zap all values which are not valid anymore when VM goes down (reboot/shutdown).
     114    /** @todo Temporary solution: Zap all values which are not valid anymore when VM goes down (reboot/shutdown).
    115115     * Needs to be replaced with "temporary properties" later. */
    116     char szPropPath [_MAX_PATH+1] = {0};
    117     char*pPtr = &szPropPath[0];
    118116
    119117    vboxVMInfoWriteProp(pCtx, "GuestInfo/OS/LoggedInUsersList", "");
    120118    vboxVMInfoWritePropInt(pCtx, "GuestInfo/OS/LoggedInUsers", 0);
    121119
    122     RTStrPrintf(szPropPath, sizeof(szPropPath), "/VirtualBox/GuestInfo/Net/*");
    123     VbglR3GuestPropDelTree(pCtx->iInfoSvcClientID, &pPtr, 1);
     120    const char *apszPat[1] = { "/VirtualBox/GuestInfo/Net/*" };
     121    VbglR3GuestPropDelSet(pCtx->iInfoSvcClientID, &apszPat[0], RT_ELEMENTS(apszPat));
    124122    vboxVMInfoWritePropInt(pCtx, "GuestInfo/Net/Count", 0);
    125123
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