VirtualBox

Changeset 37395 in vbox


Ignore:
Timestamp:
Jun 9, 2011 3:41:13 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72191
Message:

VBoxManage: show generic networking properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r37200 r37395  
    10031003                        }
    10041004                        else
     1005                        {
    10051006                            strAttachment = Utf8StrFmt("Generic '%lS'", strGenericDriver.raw());
     1007
     1008                            // show the generic properties
     1009                            com::SafeArray<BSTR> aProperties;
     1010                            com::SafeArray<BSTR> aValues;
     1011                            if (SUCCEEDED(nic->COMGETTER(Properties)(NULL,
     1012                                                                     ComSafeArrayAsOutParam(aProperties),
     1013                                                                     ComSafeArrayAsOutParam(aValues))))
     1014                            {
     1015                                strAttachment += " { ";
     1016                                unsigned i;
     1017                                for (i = 0; i < aProperties.size(); ++i)
     1018                                {
     1019                                    strAttachment += Utf8StrFmt("%lS='%lS'", aProperties[i], aValues[i]);
     1020                                    if (i != aProperties.size() - 1)
     1021                                        strAttachment += ", ";
     1022                                }
     1023                                strAttachment += " }";
     1024                            }
     1025                        }
    10061026                        break;
    10071027                    }
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