- Timestamp:
- Sep 25, 2008 12:08:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp
r10987 r12722 651 651 RTMemFree(pHandle); 652 652 } 653 654 /** 655 * Deletes a key (matching pattern) including its children. 656 * 657 * @returns VBox status code. 658 */ 659 VBGLR3DECL(int) VbglR3GuestPropDelTree(uint32_t u32ClientId, 660 char **papszPatterns, 661 int cPatterns) 662 { 663 PVBGLR3GUESTPROPENUM pHandle = NULL; 664 int rc = VINF_SUCCESS; 665 666 char* pszName = NULL; 667 char* pszValue = NULL; 668 uint64_t pu64Timestamp = 0; 669 char* pszFlags = NULL; 670 671 rc = VbglR3GuestPropEnum(u32ClientId, 672 papszPatterns, 673 cPatterns, 674 &pHandle, 675 &pszName, 676 &pszValue, 677 &pu64Timestamp, 678 &pszFlags); 679 680 while (RT_SUCCESS(rc) && (pszName != NULL)) 681 { 682 rc = VbglR3GuestPropWriteValue(u32ClientId, pszName, NULL); 683 if(!RT_SUCCESS(rc)) 684 break; 685 686 rc = VbglR3GuestPropEnumNext(pHandle, 687 &pszName, 688 &pszValue, 689 &pu64Timestamp, 690 &pszFlags); 691 } 692 693 VbglR3GuestPropEnumFree(pHandle); 694 return rc; 695 }
Note:
See TracChangeset
for help on using the changeset viewer.