Changeset 30734 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jul 8, 2010 11:50:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r30681 r30734 1906 1906 } 1907 1907 1908 ULONG guestVal; 1908 1909 1909 if (details != VMINFO_MACHINEREADABLE) 1910 1910 RTPrintf("Guest:\n\n"); 1911 1911 1912 ComPtr<IGuest> guest; 1913 rc = console->COMGETTER(Guest)(guest.asOutParam()); 1914 if (RT_SUCCESS(rc)) 1915 { 1916 Bstr guestString; 1917 rc = guest->COMGETTER(OSTypeId)(guestString.asOutParam()); 1918 if ( SUCCEEDED(rc) 1919 && !guestString.isEmpty()) 1920 { 1921 if (details == VMINFO_MACHINEREADABLE) 1922 RTPrintf("GuestOSType=\"%lS\"\n", guestString.raw()); 1923 else 1924 RTPrintf("OS type: %lS\n", guestString.raw()); 1925 } 1926 1927 BOOL guestFlag; 1928 rc = guest->COMGETTER(AdditionsActive)(&guestFlag); 1929 if (SUCCEEDED(rc)) 1930 { 1931 if (details == VMINFO_MACHINEREADABLE) 1932 RTPrintf("GuestAdditionsActive=%s\n", guestFlag ? "on" : "off"); 1933 else 1934 RTPrintf("Additions active: %s\n", guestFlag ? "yes" : "no"); 1935 } 1936 1937 if (details == VMINFO_FULL) 1938 { 1939 rc = guest->COMGETTER(AdditionsVersion)(guestString.asOutParam()); 1940 if (SUCCEEDED(rc)) 1941 { 1942 if (details == VMINFO_MACHINEREADABLE) 1943 RTPrintf("GuestAdditionsAPIVersion=\"%lS\"\n", guestString.raw()); 1944 else 1945 RTPrintf("Additions API version: %lS\n\n", guestString.raw()); 1946 } 1947 } 1948 } 1949 1950 ULONG guestVal; 1912 1951 rc = machine->COMGETTER(MemoryBalloonSize)(&guestVal); 1913 1952 if (SUCCEEDED(rc))
Note:
See TracChangeset
for help on using the changeset viewer.