Changeset 19239 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 28, 2009 1:19:14 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46627
- Location:
- trunk/src/VBox/Main
- Files:
-
- 60 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r19165 r19239 1897 1897 const Utf8Str &strNameVBox = vsdeName.front()->strVbox; 1898 1898 rc = pVirtualBox->CreateMachine(Bstr(strNameVBox), Bstr(strOsTypeVBox), 1899 Bstr(), Guid(),1899 Bstr(), Bstr(), 1900 1900 pNewMachine.asOutParam()); 1901 1901 if (FAILED(rc)) throw rc; … … 2172 2172 if (FAILED(rc)) throw rc; 2173 2173 2174 Guid newMachineId;2175 rc = pNewMachine->COMGETTER(Id)(newMachineId .asOutParam());2174 Bstr newMachineId_; 2175 rc = pNewMachine->COMGETTER(Id)(newMachineId_.asOutParam()); 2176 2176 if (FAILED(rc)) throw rc; 2177 Guid newMachineId(newMachineId_); 2177 2178 2178 2179 // store new machine for roll-back in case of errors … … 2192 2193 /* In order to attach hard disks we need to open a session 2193 2194 * for the new machine */ 2194 rc = pVirtualBox->OpenSession(session, newMachineId );2195 rc = pVirtualBox->OpenSession(session, newMachineId_); 2195 2196 if (FAILED(rc)) throw rc; 2196 2197 fSessionOpen = true; … … 2318 2319 rc = session->COMGETTER(Machine)(sMachine.asOutParam()); 2319 2320 if (FAILED(rc)) throw rc; 2320 GuidhdId;2321 Bstr hdId; 2321 2322 rc = dstHdVBox->COMGETTER(Id)(hdId.asOutParam()); 2322 2323 if (FAILED(rc)) throw rc; 2323 2324 2324 2325 /* For now we assume we have one controller of every type only */ 2325 2326 HardDiskController hdc = (*vsysThis.mapControllers.find(vd.idController)).second; … … 2433 2434 { 2434 2435 const MyHardDiskAttachment &mhda = *itM; 2435 rc2 = pVirtualBox->OpenSession(session, mhda.uuid);2436 rc2 = pVirtualBox->OpenSession(session, Bstr(mhda.uuid)); 2436 2437 if (SUCCEEDED(rc2)) 2437 2438 { … … 2467 2468 const Guid &guid = *itID; 2468 2469 ComPtr<IMachine> failedMachine; 2469 rc2 = pVirtualBox->UnregisterMachine(guid , failedMachine.asOutParam());2470 rc2 = pVirtualBox->UnregisterMachine(guid.toUtf16(), failedMachine.asOutParam()); 2470 2471 if (SUCCEEDED(rc2)) 2471 2472 rc2 = failedMachine->DeleteSettings(); -
trunk/src/VBox/Main/ConsoleImpl.cpp
r19230 r19239 485 485 } 486 486 487 Guid uuid; 488 HRESULT hrc = mMachine->COMGETTER (Id) (uuid.asOutParam()); 487 Bstr id; 488 HRESULT hrc = mMachine->COMGETTER (Id) (id.asOutParam()); 489 Guid uuid = Guid(id); 490 489 491 AssertComRCReturn (hrc, VERR_ACCESS_DENIED); 490 492 … … 736 738 } 737 739 #endif /* VBOX_WITH_VRDP */ 738 739 Guiduuid;740 741 Bstr uuid; 740 742 HRESULT hrc = mMachine->COMGETTER (Id) (uuid.asOutParam()); 741 743 AssertComRC (hrc); … … 1952 1954 } 1953 1955 1954 STDMETHODIMP Console::AttachUSBDevice (IN_ GUIDaId)1956 STDMETHODIMP Console::AttachUSBDevice (IN_BSTR aId) 1955 1957 { 1956 1958 #ifdef VBOX_WITH_USB … … 1993 1995 } 1994 1996 1995 STDMETHODIMP Console::DetachUSBDevice (IN_ GUIDaId, IUSBDevice **aDevice)1997 STDMETHODIMP Console::DetachUSBDevice (IN_BSTR aId, IUSBDevice **aDevice) 1996 1998 { 1997 1999 #ifdef VBOX_WITH_USB … … 2006 2008 ComObjPtr <OUSBDevice> device; 2007 2009 USBDeviceList::iterator it = mUSBDevices.begin(); 2010 Guid uuid(aId); 2008 2011 while (it != mUSBDevices.end()) 2009 2012 { 2010 if ((*it)->id() == aId)2013 if ((*it)->id() == uuid) 2011 2014 { 2012 2015 device = *it; … … 2088 2091 } 2089 2092 2090 STDMETHODIMP Console::FindUSBDeviceById(IN_ GUIDaId, IUSBDevice **aDevice)2093 STDMETHODIMP Console::FindUSBDeviceById(IN_BSTR aId, IUSBDevice **aDevice) 2091 2094 { 2092 2095 #ifdef VBOX_WITH_USB … … 2102 2105 for (size_t i = 0; i < devsvec.size(); ++i) 2103 2106 { 2104 Guidid;2107 Bstr id; 2105 2108 rc = devsvec[i]->COMGETTER(Id) (id.asOutParam()); 2106 2109 CheckComRCReturnRC (rc); … … 2419 2422 } 2420 2423 2421 STDMETHODIMP Console::DiscardSnapshot (IN_ GUIDaId, IProgress **aProgress)2424 STDMETHODIMP Console::DiscardSnapshot (IN_BSTR aId, IProgress **aProgress) 2422 2425 { 2423 2426 CheckComArgExpr(aId, Guid (aId).isEmpty() == false); … … 3558 3561 * @note Locks this object for writing. 3559 3562 */ 3560 HRESULT Console::onUSBDeviceDetach (IN_ GUIDaId,3563 HRESULT Console::onUSBDeviceDetach (IN_BSTR aId, 3561 3564 IVirtualBoxErrorInfo *aError) 3562 3565 { … … 5469 5472 Utf8Str Address (BstrAddress); 5470 5473 5471 Guid Uuid;5472 hrc = aHostDevice->COMGETTER (Id) ( Uuid.asOutParam());5474 Bstr id; 5475 hrc = aHostDevice->COMGETTER (Id) (id.asOutParam()); 5473 5476 ComAssertComRCRetRC (hrc); 5477 Guid uuid(id); 5474 5478 5475 5479 BOOL fRemote = FALSE; … … 5482 5486 5483 5487 LogFlowThisFunc (("Proxying USB device '%s' {%RTuuid}...\n", 5484 Address.raw(), Uuid.ptr()));5488 Address.raw(), uuid.ptr())); 5485 5489 5486 5490 /* leave the lock before a VMR3* call (EMT will call us back)! */ … … 5490 5494 PVMREQ pReq = NULL; 5491 5495 int vrc = VMR3ReqCall (mpVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT, 5492 (PFNRT) usbAttachCallback, 6, this, aHostDevice, Uuid.ptr(), fRemote, Address.raw(), aMaskedIfs);5496 (PFNRT) usbAttachCallback, 6, this, aHostDevice, uuid.ptr(), fRemote, Address.raw(), aMaskedIfs); 5493 5497 if (VBOX_SUCCESS (vrc)) 5494 5498 vrc = pReq->iStatus; … … 5503 5507 { 5504 5508 LogWarningThisFunc (("Failed to create proxy device for '%s' {%RTuuid} (%Rrc)\n", 5505 Address.raw(), Uuid.ptr(), vrc));5509 Address.raw(), uuid.ptr(), vrc)); 5506 5510 5507 5511 switch (vrc) … … 6233 6237 if (device->captured ()) 6234 6238 { 6235 Guiduuid;6239 Bstr uuid; 6236 6240 device->COMGETTER (Id) (uuid.asOutParam()); 6237 6241 onUSBDeviceDetach (uuid, NULL); -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r19230 r19239 191 191 hrc = pMachine->COMGETTER(BIOSSettings)(biosSettings.asOutParam()); H(); 192 192 193 Guid uuid; 194 hrc = pMachine->COMGETTER(Id)(uuid.asOutParam()); H(); 193 Bstr id; 194 hrc = pMachine->COMGETTER(Id)(id.asOutParam()); H(); 195 Guid uuid(id); 195 196 PCRTUUID pUuid = uuid.raw(); 196 197 … … 1527 1528 } 1528 1529 1529 Guid hostIFGuid;1530 hrc = hostInterface->COMGETTER(Id)(hostIFGuid .asOutParam());1530 Bstr hostIFGuid_; 1531 hrc = hostInterface->COMGETTER(Id)(hostIFGuid_.asOutParam()); 1531 1532 if(FAILED(hrc)) 1532 1533 { … … 1534 1535 H(); 1535 1536 } 1537 Guid hostIFGuid(hostIFGuid_); 1536 1538 1537 1539 INetCfg *pNc; … … 1852 1854 1853 1855 1854 Guid hostIFGuid;1855 hrc = hostInterface->COMGETTER(Id)(hostIFGuid .asOutParam());1856 Bstr hostIFGuid_; 1857 hrc = hostInterface->COMGETTER(Id)(hostIFGuid_.asOutParam()); 1856 1858 if(FAILED(hrc)) 1857 1859 { … … 1859 1861 H(); 1860 1862 } 1863 Guid hostIFGuid(hostIFGuid_); 1861 1864 1862 1865 INetCfg *pNc; -
trunk/src/VBox/Main/DVDDriveImpl.cpp
r18210 r19239 247 247 //////////////////////////////////////////////////////////////////////////////// 248 248 249 STDMETHODIMP DVDDrive::MountImage (IN_ GUIDaImageId)250 { 251 Guid imageId = aImageId;249 STDMETHODIMP DVDDrive::MountImage (IN_BSTR aImageId) 250 { 251 Guid imageId(aImageId); 252 252 CheckComArgExpr(aImageId, !imageId.isEmpty()); 253 253 … … 444 444 { 445 445 Guid uuid = typeNode.value <Guid> ("uuid"); 446 rc = MountImage (uuid );446 rc = MountImage (uuid.toUtf16()); 447 447 CheckComRCReturnRC (rc); 448 448 } … … 514 514 Assert (!m->image.isNull()); 515 515 516 Guidid;516 Bstr id; 517 517 HRESULT rc = m->image->COMGETTER(Id) (id.asOutParam()); 518 518 AssertComRC (rc); … … 520 520 521 521 Key imageNode = node.createKey ("Image"); 522 imageNode.setValue <Guid> ("uuid", id);522 imageNode.setValue <Guid> ("uuid", Guid(id)); 523 523 break; 524 524 } -
trunk/src/VBox/Main/FloppyDriveImpl.cpp
r18210 r19239 254 254 ///////////////////////////////////////////////////////////////////////////// 255 255 256 STDMETHODIMP FloppyDrive::MountImage (IN_ GUIDaImageId)256 STDMETHODIMP FloppyDrive::MountImage (IN_BSTR aImageId) 257 257 { 258 258 Guid imageId = aImageId; … … 451 451 { 452 452 Guid uuid = typeNode.value <Guid> ("uuid"); 453 rc = MountImage (uuid );453 rc = MountImage (uuid.toUtf16()); 454 454 CheckComRCReturnRC (rc); 455 455 } … … 521 521 Assert (!m->image.isNull()); 522 522 523 Guidid;523 Bstr id; 524 524 HRESULT rc = m->image->COMGETTER(Id) (id.asOutParam()); 525 525 AssertComRC (rc); … … 527 527 528 528 Key imageNode = node.createKey ("Image"); 529 imageNode.setValue <Guid> ("uuid", id);529 imageNode.setValue <Guid> ("uuid", Guid(id)); 530 530 break; 531 531 } -
trunk/src/VBox/Main/HardDiskImpl.cpp
r19108 r19239 1538 1538 } 1539 1539 1540 STDMETHODIMP HardDisk::MergeTo (IN_ GUID/* aTargetId */, IProgress ** /* aProgress */)1540 STDMETHODIMP HardDisk::MergeTo (IN_BSTR /* aTargetId */, IProgress ** /* aProgress */) 1541 1541 { 1542 1542 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/HostImpl.cpp
r19130 r19239 1237 1237 1238 1238 STDMETHODIMP 1239 Host::RemoveHostOnlyNetworkInterface (IN_ GUIDaId,1239 Host::RemoveHostOnlyNetworkInterface (IN_BSTR aId, 1240 1240 IHostNetworkInterface **aHostNetworkInterface, 1241 1241 IProgress **aProgress) … … 1256 1256 } 1257 1257 1258 int r = NetIfRemoveHostOnlyNetworkInterface (mParent, aId, aHostNetworkInterface, aProgress);1258 int r = NetIfRemoveHostOnlyNetworkInterface (mParent, Guid(aId), aHostNetworkInterface, aProgress); 1259 1259 if(RT_SUCCESS(r)) 1260 1260 { … … 2334 2334 } 2335 2335 2336 STDMETHODIMP Host::FindHostNetworkInterfaceById(IN_ GUIDid, IHostNetworkInterface **networkInterface)2336 STDMETHODIMP Host::FindHostNetworkInterfaceById(IN_BSTR id, IHostNetworkInterface **networkInterface) 2337 2337 { 2338 2338 #ifndef VBOX_WITH_HOSTNETIF_API … … 2356 2356 for (it = list.begin(); it != list.end(); ++it) 2357 2357 { 2358 Guidg;2358 Bstr g; 2359 2359 (*it)->COMGETTER(Id) (g.asOutParam()); 2360 if (g == Guid(id))2360 if (g == id) 2361 2361 found = *it; 2362 2362 } … … 2434 2434 } 2435 2435 2436 STDMETHODIMP Host::FindUSBDeviceById (IN_ GUIDaId, IHostUSBDevice **aDevice)2436 STDMETHODIMP Host::FindUSBDeviceById (IN_BSTR aId, IHostUSBDevice **aDevice) 2437 2437 { 2438 2438 #ifdef VBOX_WITH_USB … … 2448 2448 for (size_t i = 0; i < devsvec.size(); ++i) 2449 2449 { 2450 Guidid;2450 Bstr id; 2451 2451 rc = devsvec[i]->COMGETTER(Id) (id.asOutParam()); 2452 2452 CheckComRCReturnRC (rc); -
trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp
r19130 r19239 180 180 * @param aGuid address of result pointer 181 181 */ 182 STDMETHODIMP HostNetworkInterface::COMGETTER(Id) ( OUT_GUIDaGuid)182 STDMETHODIMP HostNetworkInterface::COMGETTER(Id) (BSTR *aGuid) 183 183 { 184 184 CheckComArgOutPointerValid(aGuid); … … 187 187 CheckComRCReturnRC (autoCaller.rc()); 188 188 189 mGuid. cloneTo (aGuid);189 mGuid.toUtf16().cloneTo (aGuid); 190 190 191 191 return S_OK; -
trunk/src/VBox/Main/MachineImpl.cpp
r19236 r19239 869 869 } 870 870 871 STDMETHODIMP Machine::COMGETTER(Id) ( OUT_GUIDaId)871 STDMETHODIMP Machine::COMGETTER(Id) (BSTR *aId) 872 872 { 873 873 CheckComArgOutPointerValid (aId); … … 878 878 AutoReadLock alock (this); 879 879 880 mData->mUuid. cloneTo (aId);880 mData->mUuid.toUtf16().cloneTo (aId); 881 881 882 882 return S_OK; … … 1887 1887 } 1888 1888 1889 STDMETHODIMP Machine::AttachHardDisk(IN_ GUIDaId,1889 STDMETHODIMP Machine::AttachHardDisk(IN_BSTR aId, 1890 1890 IN_BSTR aControllerName, LONG aControllerPort, 1891 1891 LONG aDevice) … … 1954 1954 } 1955 1955 1956 Guid id = aId;1956 Guid id(aId); 1957 1957 1958 1958 /* find a hard disk by UUID */ … … 2799 2799 } 2800 2800 2801 STDMETHODIMP Machine::GetSnapshot (IN_ GUIDaId, ISnapshot **aSnapshot)2801 STDMETHODIMP Machine::GetSnapshot (IN_BSTR aId, ISnapshot **aSnapshot) 2802 2802 { 2803 2803 CheckComArgOutPointerValid (aSnapshot); … … 2808 2808 AutoReadLock alock (this); 2809 2809 2810 Guid id = aId;2810 Guid id(aId); 2811 2811 ComObjPtr <Snapshot> snapshot; 2812 2812 … … 2835 2835 } 2836 2836 2837 STDMETHODIMP Machine::SetCurrentSnapshot (IN_ GUID/* aId */)2837 STDMETHODIMP Machine::SetCurrentSnapshot (IN_BSTR /* aId */) 2838 2838 { 2839 2839 /// @todo (dmik) don't forget to set … … 8737 8737 * @note Locks the same as Host::captureUSBDevice() does. 8738 8738 */ 8739 STDMETHODIMP SessionMachine::CaptureUSBDevice (IN_ GUIDaId)8739 STDMETHODIMP SessionMachine::CaptureUSBDevice (IN_BSTR aId) 8740 8740 { 8741 8741 LogFlowThisFunc (("\n")); … … 8751 8751 USBProxyService *service = mParent->host()->usbProxyService(); 8752 8752 AssertReturn (service, E_FAIL); 8753 return service->captureDeviceForVM (this, aId);8753 return service->captureDeviceForVM (this, Guid(aId)); 8754 8754 #else 8755 8755 return E_NOTIMPL; … … 8760 8760 * @note Locks the same as Host::detachUSBDevice() does. 8761 8761 */ 8762 STDMETHODIMP SessionMachine::DetachUSBDevice (IN_ GUIDaId, BOOL aDone)8762 STDMETHODIMP SessionMachine::DetachUSBDevice (IN_BSTR aId, BOOL aDone) 8763 8763 { 8764 8764 LogFlowThisFunc (("\n")); … … 8770 8770 USBProxyService *service = mParent->host()->usbProxyService(); 8771 8771 AssertReturn (service, E_FAIL); 8772 return service->detachDeviceFromVM (this, aId, !!aDone);8772 return service->detachDeviceFromVM (this, Guid(aId), !!aDone); 8773 8773 #else 8774 8774 return E_NOTIMPL; … … 8930 8930 8931 8931 /* memorize the progress ID and add it to the global collection */ 8932 GuidprogressId;8932 Bstr progressId; 8933 8933 HRESULT rc = aProgress->COMGETTER(Id) (progressId.asOutParam()); 8934 8934 AssertComRCReturn (rc, rc); … … 8947 8947 /* fill in the snapshot data */ 8948 8948 mSnapshotData.mLastState = mData->mMachineState; 8949 mSnapshotData.mProgressId = progressId;8949 mSnapshotData.mProgressId = Guid(progressId); 8950 8950 mSnapshotData.mStateFilePath = stateFilePath; 8951 8951 … … 9216 9216 */ 9217 9217 STDMETHODIMP SessionMachine::DiscardSnapshot ( 9218 IConsole *aInitiator, IN_ GUIDaId,9218 IConsole *aInitiator, IN_BSTR aId, 9219 9219 MachineState_T *aMachineState, IProgress **aProgress) 9220 9220 { 9221 9221 LogFlowThisFunc (("\n")); 9222 9222 9223 Guid id = aId;9223 Guid id(aId); 9224 9224 AssertReturn (aInitiator && !id.isEmpty(), E_INVALIDARG); 9225 9225 AssertReturn (aMachineState && aProgress, E_POINTER); … … 9982 9982 * @note The calls shall hold no locks. Will temporarily lock this object for reading. 9983 9983 */ 9984 HRESULT SessionMachine::onUSBDeviceDetach (IN_ GUIDaId,9984 HRESULT SessionMachine::onUSBDeviceDetach (IN_BSTR aId, 9985 9985 IVirtualBoxErrorInfo *aError) 9986 9986 { -
trunk/src/VBox/Main/MediumImpl.cpp
r18813 r19239 52 52 //////////////////////////////////////////////////////////////////////////////// 53 53 54 STDMETHODIMP MediumBase::COMGETTER(Id) ( OUT_GUIDaId)54 STDMETHODIMP MediumBase::COMGETTER(Id) (BSTR *aId) 55 55 { 56 56 CheckComArgOutPointerValid (aId); … … 61 61 AutoReadLock alock (this); 62 62 63 m.id. cloneTo (aId);63 m.id.toUtf16().cloneTo (aId); 64 64 65 65 return S_OK; … … 204 204 } 205 205 206 STDMETHODIMP MediumBase::COMGETTER(MachineIds) (ComSafe GUIDArrayOut (aMachineIds))206 STDMETHODIMP MediumBase::COMGETTER(MachineIds) (ComSafeArrayOut (BSTR,aMachineIds)) 207 207 { 208 208 if (ComSafeGUIDArrayOutIsNull (aMachineIds)) … … 214 214 AutoReadLock alock (this); 215 215 216 com::Safe GUIDArraymachineIds;216 com::SafeArray<BSTR> machineIds; 217 217 218 218 if (m.backRefs.size() != 0) … … 224 224 it != m.backRefs.end(); ++ it, ++ i) 225 225 { 226 machineIds [i] = it->machineId;227 } 228 } 229 230 machineIds.detachTo (ComSafe GUIDArrayOutArg (aMachineIds));226 it->machineId.toUtf16().detachTo(&machineIds [i]); 227 } 228 } 229 230 machineIds.detachTo (ComSafeArrayOutArg (aMachineIds)); 231 231 232 232 return S_OK; … … 236 236 //////////////////////////////////////////////////////////////////////////////// 237 237 238 STDMETHODIMP MediumBase::GetSnapshotIds (IN_ GUIDaMachineId,239 ComSafe GUIDArrayOut (aSnapshotIds))238 STDMETHODIMP MediumBase::GetSnapshotIds (IN_BSTR aMachineId, 239 ComSafeArrayOut (BSTR, aSnapshotIds)) 240 240 { 241 241 CheckComArgExpr (aMachineId, Guid (aMachineId).isEmpty() == false); … … 247 247 AutoReadLock alock (this); 248 248 249 com::SafeGUIDArray snapshotIds; 250 249 com::SafeArray<BSTR> snapshotIds; 250 251 Guid id(aMachineId); 251 252 for (BackRefList::const_iterator it = m.backRefs.begin(); 252 253 it != m.backRefs.end(); ++ it) 253 254 { 254 if (it->machineId == aMachineId)255 if (it->machineId == id) 255 256 { 256 257 size_t size = it->snapshotIds.size(); … … 267 268 size_t j = 0; 268 269 if (it->inCurState) 269 snapshotIds [j ++] = it->machineId;270 it->machineId.toUtf16().detachTo(&snapshotIds [j ++]); 270 271 271 272 for (BackRef::GuidList::const_iterator jt = … … 273 274 jt != it->snapshotIds.end(); ++ jt, ++ j) 274 275 { 275 snapshotIds [j] = *jt;276 (*jt).toUtf16().detachTo(&snapshotIds [j]); 276 277 } 277 278 } … … 281 282 } 282 283 283 snapshotIds.detachTo (ComSafe GUIDArrayOutArg (aSnapshotIds));284 snapshotIds.detachTo (ComSafeArrayOutArg (aSnapshotIds)); 284 285 285 286 return S_OK; -
trunk/src/VBox/Main/ProgressImpl.cpp
r18643 r19239 200 200 ///////////////////////////////////////////////////////////////////////////// 201 201 202 STDMETHODIMP ProgressBase::COMGETTER(Id) ( OUT_GUIDaId)202 STDMETHODIMP ProgressBase::COMGETTER(Id) (BSTR *aId) 203 203 { 204 204 CheckComArgOutPointerValid(aId); … … 208 208 209 209 /* mId is constant during life time, no need to lock */ 210 mId. cloneTo (aId);210 mId.toUtf16().cloneTo (aId); 211 211 212 212 return S_OK; -
trunk/src/VBox/Main/RemoteUSBDeviceImpl.cpp
r15051 r19239 132 132 ///////////////////////////////////////////////////////////////////////////// 133 133 134 STDMETHODIMP RemoteUSBDevice::COMGETTER(Id) ( OUT_GUIDaId)134 STDMETHODIMP RemoteUSBDevice::COMGETTER(Id) (BSTR *aId) 135 135 { 136 136 CheckComArgOutPointerValid(aId); … … 140 140 141 141 /* this is const, no need to lock */ 142 mData.id.cloneTo (aId);142 Bstr(mData.id).cloneTo (aId); 143 143 144 144 return S_OK; -
trunk/src/VBox/Main/SessionImpl.cpp
r17669 r19239 643 643 } 644 644 645 STDMETHODIMP Session::OnUSBDeviceDetach (IN_ GUIDaId,645 STDMETHODIMP Session::OnUSBDeviceDetach (IN_BSTR aId, 646 646 IVirtualBoxErrorInfo *aError) 647 647 { -
trunk/src/VBox/Main/SnapshotImpl.cpp
r18482 r19239 165 165 //////////////////////////////////////////////////////////////////////////////// 166 166 167 STDMETHODIMP Snapshot::COMGETTER(Id) ( OUT_GUIDaId)167 STDMETHODIMP Snapshot::COMGETTER(Id) (BSTR *aId) 168 168 { 169 169 CheckComArgOutPointerValid(aId); … … 172 172 CHECK_READY(); 173 173 174 mData.mId. cloneTo (aId);174 mData.mId.toUtf16().cloneTo (aId); 175 175 return S_OK; 176 176 } -
trunk/src/VBox/Main/USBDeviceImpl.cpp
r15051 r19239 94 94 ComAssertComRCRet (hrc, hrc); 95 95 96 hrc = aUSBDevice->COMGETTER(Id)(unconst (mData.id).asOutParam()); 97 ComAssertComRCRet (hrc, hrc); 96 Bstr id; 97 hrc = aUSBDevice->COMGETTER(Id)(id.asOutParam()); 98 ComAssertComRCRet (hrc, hrc); 99 unconst(mData.id) = Guid(id); 98 100 99 101 /* Confirm a successful initialization */ … … 144 146 * @param aId Address of result variable. 145 147 */ 146 STDMETHODIMP OUSBDevice::COMGETTER(Id)( OUT_GUIDaId)148 STDMETHODIMP OUSBDevice::COMGETTER(Id)(BSTR *aId) 147 149 { 148 150 CheckComArgOutPointerValid(aId); … … 152 154 153 155 /* this is const, no need to lock */ 154 mData.id.cloneTo (aId);156 Guid(mData.id).toString().cloneTo (aId); 155 157 156 158 return S_OK; -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r19236 r19239 784 784 IN_BSTR aOsTypeId, 785 785 IN_BSTR aBaseFolder, 786 IN_ GUIDaId,786 IN_BSTR aId, 787 787 IMachine **aMachine) 788 788 { … … 822 822 823 823 /* Create UUID if an empty one was specified. */ 824 Guid id = aId;824 Guid id(aId); 825 825 if (id.isEmpty()) 826 826 id.create(); … … 866 866 IN_BSTR aOsTypeId, 867 867 IN_BSTR aSettingsFile, 868 IN_ GUIDaId,868 IN_BSTR aId, 869 869 IMachine **aMachine) 870 870 { … … 889 889 890 890 /* Create UUID if an empty one was specified. */ 891 Guid id = aId;891 Guid id(aId); 892 892 if (id.isEmpty()) 893 893 id.create(); … … 1000 1000 1001 1001 /** @note Locks objects! */ 1002 STDMETHODIMP VirtualBox::GetMachine (IN_ GUIDaId, IMachine **aMachine)1002 STDMETHODIMP VirtualBox::GetMachine (IN_BSTR aId, IMachine **aMachine) 1003 1003 { 1004 1004 CheckComArgOutSafeArrayPointerValid(aMachine); … … 1068 1068 1069 1069 /** @note Locks objects! */ 1070 STDMETHODIMP VirtualBox::UnregisterMachine (IN_ GUIDaId,1070 STDMETHODIMP VirtualBox::UnregisterMachine (IN_BSTR aId, 1071 1071 IMachine **aMachine) 1072 1072 { 1073 Guid id = aId;1073 Guid id(aId); 1074 1074 if (id.isEmpty()) 1075 1075 return E_INVALIDARG; … … 1171 1171 } 1172 1172 1173 STDMETHODIMP VirtualBox::GetHardDisk(IN_ GUIDaId,1173 STDMETHODIMP VirtualBox::GetHardDisk(IN_BSTR aId, 1174 1174 IHardDisk **aHardDisk) 1175 1175 { … … 1179 1179 CheckComRCReturnRC (autoCaller.rc()); 1180 1180 1181 Guid id = aId;1181 Guid id(aId); 1182 1182 ComObjPtr<HardDisk> hardDisk; 1183 1183 HRESULT rc = findHardDisk(&id, NULL, true /* setError */, &hardDisk); … … 1208 1208 1209 1209 /** @note Doesn't lock anything. */ 1210 STDMETHODIMP VirtualBox::OpenDVDImage (IN_BSTR aLocation, IN_ GUIDaId,1210 STDMETHODIMP VirtualBox::OpenDVDImage (IN_BSTR aLocation, IN_BSTR aId, 1211 1211 IDVDImage **aDVDImage) 1212 1212 { … … 1219 1219 HRESULT rc = VBOX_E_FILE_ERROR; 1220 1220 1221 Guid id = aId;1221 Guid id(aId); 1222 1222 /* generate an UUID if not specified */ 1223 1223 if (id.isEmpty()) … … 1239 1239 1240 1240 /** @note Locks objects! */ 1241 STDMETHODIMP VirtualBox::GetDVDImage (IN_ GUIDaId, IDVDImage **aDVDImage)1241 STDMETHODIMP VirtualBox::GetDVDImage (IN_BSTR aId, IDVDImage **aDVDImage) 1242 1242 { 1243 1243 CheckComArgOutSafeArrayPointerValid(aDVDImage); … … 1246 1246 CheckComRCReturnRC (autoCaller.rc()); 1247 1247 1248 Guid id = aId;1248 Guid id(aId); 1249 1249 ComObjPtr <DVDImage> image; 1250 1250 HRESULT rc = findDVDImage (&id, NULL, true /* setError */, &image); … … 1275 1275 1276 1276 /** @note Doesn't lock anything. */ 1277 STDMETHODIMP VirtualBox::OpenFloppyImage (IN_BSTR aLocation, IN_ GUIDaId,1277 STDMETHODIMP VirtualBox::OpenFloppyImage (IN_BSTR aLocation, IN_BSTR aId, 1278 1278 IFloppyImage **aFloppyImage) 1279 1279 { … … 1286 1286 HRESULT rc = VBOX_E_FILE_ERROR; 1287 1287 1288 Guid id = aId;1288 Guid id(aId); 1289 1289 /* generate an UUID if not specified */ 1290 1290 if (id.isEmpty()) … … 1306 1306 1307 1307 /** @note Locks objects! */ 1308 STDMETHODIMP VirtualBox::GetFloppyImage (IN_ GUIDaId,1308 STDMETHODIMP VirtualBox::GetFloppyImage (IN_BSTR aId, 1309 1309 IFloppyImage **aFloppyImage) 1310 1310 … … 1315 1315 CheckComRCReturnRC (autoCaller.rc()); 1316 1316 1317 Guid id = aId;1317 Guid id(aId); 1318 1318 ComObjPtr<FloppyImage> image; 1319 1319 HRESULT rc = findFloppyImage (&id, NULL, true /* setError */, &image); … … 1696 1696 * @note Locks objects! 1697 1697 */ 1698 STDMETHODIMP VirtualBox::OpenSession (ISession *aSession, IN_ GUIDaMachineId)1698 STDMETHODIMP VirtualBox::OpenSession (ISession *aSession, IN_BSTR aMachineId) 1699 1699 { 1700 1700 CheckComArgNotNull(aSession); … … 1703 1703 CheckComRCReturnRC (autoCaller.rc()); 1704 1704 1705 Guid id = aMachineId;1705 Guid id(aMachineId); 1706 1706 ComObjPtr <Machine> machine; 1707 1707 1708 1708 HRESULT rc = findMachine (id, true /* setError */, &machine); 1709 1709 CheckComRCReturnRC (rc); … … 1734 1734 1735 1735 /* fire an event */ 1736 onSessionStateChange ( aMachineId, SessionState_Open);1736 onSessionStateChange (id, SessionState_Open); 1737 1737 } 1738 1738 … … 1744 1744 */ 1745 1745 STDMETHODIMP VirtualBox::OpenRemoteSession (ISession *aSession, 1746 IN_ GUIDaMachineId,1746 IN_BSTR aMachineId, 1747 1747 IN_BSTR aType, 1748 1748 IN_BSTR aEnvironment, 1749 1749 IProgress **aProgress) 1750 1750 { 1751 LogRel(("remotesession=%s\n", Utf8Str(aMachineId).c_str())); 1752 1753 CheckComArgNotNull(aMachineId); 1751 1754 CheckComArgNotNull(aSession); 1752 1755 CheckComArgNotNull(aType); … … 1756 1759 CheckComRCReturnRC (autoCaller.rc()); 1757 1760 1758 Guid id = aMachineId;1761 Guid id(aMachineId); 1759 1762 ComObjPtr <Machine> machine; 1760 1763 … … 1793 1796 1794 1797 /* fire an event */ 1795 onSessionStateChange ( aMachineId, SessionState_Spawning);1798 onSessionStateChange (id, SessionState_Spawning); 1796 1799 } 1797 1800 … … 1803 1806 */ 1804 1807 STDMETHODIMP VirtualBox::OpenExistingSession (ISession *aSession, 1805 IN_ GUIDaMachineId)1808 IN_BSTR aMachineId) 1806 1809 { 1807 1810 CheckComArgNotNull(aSession); … … 1810 1813 CheckComRCReturnRC (autoCaller.rc()); 1811 1814 1812 Guid id = aMachineId;1815 Guid id(aMachineId); 1813 1816 ComObjPtr <Machine> machine; 1814 1817 … … 1975 1978 CheckComRCReturnRC (autoCaller.rc()); 1976 1979 1977 Guidid;1980 Bstr id; 1978 1981 HRESULT rc = aProgress->COMGETTER(Id) (id.asOutParam()); 1979 1982 AssertComRCReturnRC (rc); … … 1982 1985 AutoWriteLock safeLock (mSafeLock); 1983 1986 1984 mData.mProgressOperations.insert (ProgressMap::value_type (id, aProgress)); 1987 printf("adding %s\n", Utf8Str(id).c_str()); 1988 1989 mData.mProgressOperations.insert (ProgressMap::value_type (Guid(id), aProgress)); 1985 1990 return S_OK; 1986 1991 } … … 2313 2318 case DataChanged: 2314 2319 LogFlow (("OnMachineDataChange: id={%RTuuid}\n", id.ptr())); 2315 aCallback->OnMachineDataChange (id );2320 aCallback->OnMachineDataChange (id.toUtf16()); 2316 2321 break; 2317 2322 … … 2319 2324 LogFlow (("OnMachineStateChange: id={%RTuuid}, state=%d\n", 2320 2325 id.ptr(), state)); 2321 aCallback->OnMachineStateChange (id , state);2326 aCallback->OnMachineStateChange (id.toUtf16(), state); 2322 2327 break; 2323 2328 … … 2325 2330 LogFlow (("OnMachineRegistered: id={%RTuuid}, registered=%d\n", 2326 2331 id.ptr(), registered)); 2327 aCallback->OnMachineRegistered (id , registered);2332 aCallback->OnMachineRegistered (id.toUtf16(), registered); 2328 2333 break; 2329 2334 } … … 2373 2378 BOOL allowChange = TRUE; 2374 2379 CallbackList::iterator it = list.begin(); 2380 Bstr id = aId.toUtf16(); 2375 2381 while ((it != list.end()) && allowChange) 2376 2382 { 2377 HRESULT rc = (*it++)->OnExtraDataCanChange ( aId, aKey, aValue,2383 HRESULT rc = (*it++)->OnExtraDataCanChange (id, aKey, aValue, 2378 2384 aError.asOutParam(), &allowChange); 2379 2385 if (FAILED (rc)) … … 2405 2411 LogFlow (("OnExtraDataChange: machineId={%RTuuid}, key='%ls', val='%ls'\n", 2406 2412 machineId.ptr(), key.raw(), val.raw())); 2407 aCallback->OnExtraDataChange (machineId , key, val);2413 aCallback->OnExtraDataChange (machineId.toUtf16(), key, val); 2408 2414 } 2409 2415 … … 2439 2445 LogFlow (("OnSessionStateChange: machineId={%RTuuid}, sessionState=%d\n", 2440 2446 machineId.ptr(), sessionState)); 2441 aCallback->OnSessionStateChange (machineId , sessionState);2447 aCallback->OnSessionStateChange (machineId.toUtf16(), sessionState); 2442 2448 } 2443 2449 … … 2468 2474 void handleCallback (const ComPtr <IVirtualBoxCallback> &aCallback) 2469 2475 { 2476 Bstr mid = machineId.toUtf16(); 2477 Bstr sid = snapshotId.toUtf16(); 2478 2470 2479 switch (what) 2471 2480 { … … 2473 2482 LogFlow (("OnSnapshotTaken: machineId={%RTuuid}, snapshotId={%RTuuid}\n", 2474 2483 machineId.ptr(), snapshotId.ptr())); 2475 aCallback->OnSnapshotTaken (m achineId, snapshotId);2484 aCallback->OnSnapshotTaken (mid, sid); 2476 2485 break; 2477 2486 … … 2479 2488 LogFlow (("OnSnapshotDiscarded: machineId={%RTuuid}, snapshotId={%RTuuid}\n", 2480 2489 machineId.ptr(), snapshotId.ptr())); 2481 aCallback->OnSnapshotDiscarded (m achineId, snapshotId);2490 aCallback->OnSnapshotDiscarded (mid, sid); 2482 2491 break; 2483 2492 … … 2485 2494 LogFlow (("OnSnapshotChange: machineId={%RTuuid}, snapshotId={%RTuuid}\n", 2486 2495 machineId.ptr(), snapshotId.ptr())); 2487 aCallback->OnSnapshotChange (m achineId, snapshotId);2496 aCallback->OnSnapshotChange (mid, sid); 2488 2497 break; 2489 2498 } … … 2533 2542 LogFlow (("OnGuestPropertyChange: machineId={%RTuuid}, name='%ls', value='%ls', flags='%ls'\n", 2534 2543 machineId.ptr(), name.raw(), value.raw(), flags.raw())); 2535 aCallback->OnGuestPropertyChange (machineId , name, value, flags);2544 aCallback->OnGuestPropertyChange (machineId.toUtf16(), name, value, flags); 2536 2545 } 2537 2546 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r19176 r19239 1006 1006 <see>IMachine::state</see> 1007 1007 </desc> 1008 <param name="machineId" type=" uuid" dir="in">1008 <param name="machineId" type="wstring" dir="in"> 1009 1009 <desc>ID of the machine this event relates to.</desc> 1010 1010 </param> … … 1018 1018 Any of the settings of the given machine has changed. 1019 1019 </desc> 1020 <param name="machineId" type=" uuid" dir="in">1020 <param name="machineId" type="wstring" dir="in"> 1021 1021 <desc>ID of the machine this event relates to.</desc> 1022 1022 </param> … … 1029 1029 This gives the chance to veto against changes. 1030 1030 </desc> 1031 <param name="machineId" type=" uuid" dir="in">1031 <param name="machineId" type="wstring" dir="in"> 1032 1032 <desc> 1033 1033 ID of the machine this event relates to … … 1064 1064 has changed. 1065 1065 </desc> 1066 <param name="machineId" type=" uuid" dir="in">1066 <param name="machineId" type="wstring" dir="in"> 1067 1067 <desc> 1068 1068 ID of the machine this event relates to. … … 1109 1109 @a mediaId value. 1110 1110 </desc> 1111 <param name="mediaId" type=" uuid" dir="in">1111 <param name="mediaId" type="wstring" dir="in"> 1112 1112 <desc>ID of the media this event relates to.</desc> 1113 1113 </param> … … 1128 1128 within this VirtualBox installation. 1129 1129 </desc> 1130 <param name="machineId" type=" uuid" dir="in">1130 <param name="machineId" type="wstring" dir="in"> 1131 1131 <desc>ID of the machine this event relates to.</desc> 1132 1132 </param> … … 1144 1144 <see>IMachine::sessionState</see> 1145 1145 </desc> 1146 <param name="machineId" type=" uuid" dir="in">1146 <param name="machineId" type="wstring" dir="in"> 1147 1147 <desc>ID of the machine this event relates to.</desc> 1148 1148 </param> … … 1157 1157 <see>ISnapshot</see> 1158 1158 </desc> 1159 <param name="machineId" type=" uuid" dir="in">1159 <param name="machineId" type="wstring" dir="in"> 1160 1160 <desc>ID of the machine this event relates to.</desc> 1161 1161 </param> 1162 <param name="snapshotId" type=" uuid" dir="in">1162 <param name="snapshotId" type="wstring" dir="in"> 1163 1163 <desc>ID of the new snapshot.</desc> 1164 1164 </param> … … 1177 1177 <see>ISnapshot</see> 1178 1178 </desc> 1179 <param name="machineId" type=" uuid" dir="in">1179 <param name="machineId" type="wstring" dir="in"> 1180 1180 <desc>ID of the machine this event relates to.</desc> 1181 1181 </param> 1182 <param name="snapshotId" type=" uuid" dir="in">1182 <param name="snapshotId" type="wstring" dir="in"> 1183 1183 <desc> 1184 1184 ID of the discarded snapshot. <tt>null</tt> means the … … 1194 1194 <see>ISnapshot</see> 1195 1195 </desc> 1196 <param name="machineId" type=" uuid" dir="in">1196 <param name="machineId" type="wstring" dir="in"> 1197 1197 <desc>ID of the machine this event relates to.</desc> 1198 1198 </param> 1199 <param name="snapshotId" type=" uuid" dir="in">1199 <param name="snapshotId" type="wstring" dir="in"> 1200 1200 <desc>ID of the changed snapshot.</desc> 1201 1201 </param> … … 1206 1206 Notification when a guest property has changed. 1207 1207 </desc> 1208 <param name="machineId" type=" uuid" dir="in">1208 <param name="machineId" type="wstring" dir="in"> 1209 1209 <desc> 1210 1210 ID of the machine this event relates to. … … 1626 1626 <desc>Base machine folder (optional).</desc> 1627 1627 </param> 1628 <param name="id" type=" uuid" dir="in">1628 <param name="id" type="wstring" dir="in"> 1629 1629 <desc>Machine UUID (optional).</desc> 1630 1630 </param> … … 1686 1686 <desc>Name of the machine settings file.</desc> 1687 1687 </param> 1688 <param name="id" type=" uuid" dir="in">1688 <param name="id" type="wstring" dir="in"> 1689 1689 <desc>Machine UUID (optional).</desc> 1690 1690 </param> … … 1763 1763 1764 1764 </desc> 1765 <param name="id" type=" uuid" dir="in"/>1765 <param name="id" type="wstring" dir="in"/> 1766 1766 <param name="machine" type="IMachine" dir="return"/> 1767 1767 </method> … … 1820 1820 1821 1821 </desc> 1822 <param name="id" type=" uuid" dir="in">1822 <param name="id" type="wstring" dir="in"> 1823 1823 <desc>UUID of the machine to unregister.</desc> 1824 1824 </param> … … 1974 1974 1975 1975 </desc> 1976 <param name="id" type=" uuid" dir="in">1976 <param name="id" type="wstring" dir="in"> 1977 1977 <desc>UUID of the hard disk to look for.</desc> 1978 1978 </param> … … 2051 2051 </desc> 2052 2052 </param> 2053 <param name="id" type=" uuid" dir="in">2053 <param name="id" type="wstring" dir="in"> 2054 2054 <desc> 2055 2055 UUID to assign to the given image within this VirtualBox installation. … … 2076 2076 2077 2077 </desc> 2078 <param name="id" type=" uuid" dir="in">2078 <param name="id" type="wstring" dir="in"> 2079 2079 <desc>UUID of the image to look for.</desc> 2080 2080 </param> … … 2151 2151 </desc> 2152 2152 </param> 2153 <param name="id" type=" uuid" dir="in">2153 <param name="id" type="wstring" dir="in"> 2154 2154 <desc> 2155 2155 UUID to assign to the given image file within this VirtualBox … … 2176 2176 2177 2177 </desc> 2178 <param name="id" type=" uuid" dir="in">2178 <param name="id" type="wstring" dir="in"> 2179 2179 <desc>UUID of the image to look for.</desc> 2180 2180 </param> … … 2453 2453 </desc> 2454 2454 </param> 2455 <param name="machineId" type=" uuid" dir="in">2455 <param name="machineId" type="wstring" dir="in"> 2456 2456 <desc>ID of the virtual machine to open a session with.</desc> 2457 2457 </param> … … 2545 2545 </desc> 2546 2546 </param> 2547 <param name="machineId" type=" uuid" dir="in">2547 <param name="machineId" type="wstring" dir="in"> 2548 2548 <desc>ID of the virtual machine to open a session with.</desc> 2549 2549 </param> … … 2611 2611 </desc> 2612 2612 </param> 2613 <param name="machineId" type=" uuid" dir="in">2613 <param name="machineId" type="wstring" dir="in"> 2614 2614 <desc>ID of the virtual machine to open a session with.</desc> 2615 2615 </param> … … 3606 3606 notification. 3607 3607 </desc> 3608 <param name="id" type=" uuid" dir="in"/>3608 <param name="id" type="wstring" dir="in"/> 3609 3609 </method> 3610 3610 … … 3622 3622 </note> 3623 3623 </desc> 3624 <param name="id" type=" uuid" dir="in"/>3624 <param name="id" type="wstring" dir="in"/> 3625 3625 <param name="done" type="boolean" dir="in"/> 3626 3626 </method> … … 3782 3782 <desc>The console object that initiated this call.</desc> 3783 3783 </param> 3784 <param name="id" type=" uuid" dir="in">3784 <param name="id" type="wstring" dir="in"> 3785 3785 <desc>UUID of the snapshot to discard.</desc> 3786 3786 </param> … … 4156 4156 </attribute> 4157 4157 4158 <attribute name="id" type=" uuid" readonly="yes">4158 <attribute name="id" type="wstring" readonly="yes"> 4159 4159 <desc>UUID of the virtual machine.</desc> 4160 4160 </attribute> … … 4650 4650 4651 4651 </desc> 4652 <param name="id" type=" uuid" dir="in">4652 <param name="id" type="wstring" dir="in"> 4653 4653 <desc>UUID of the hard disk to attach.</desc> 4654 4654 </param> … … 5120 5120 5121 5121 </desc> 5122 <param name="id" type=" uuid" dir="in">5122 <param name="id" type="wstring" dir="in"> 5123 5123 <desc>UUID of the snapshot to get</desc> 5124 5124 </param> … … 5153 5153 </note> 5154 5154 </desc> 5155 <param name="id" type=" uuid" dir="in">5155 <param name="id" type="wstring" dir="in"> 5156 5156 <desc>UUID of the snapshot to set as the current snapshot.</desc> 5157 5157 </param> … … 6370 6370 </result> 6371 6371 </desc> 6372 <param name="id" type=" uuid" dir="in">6372 <param name="id" type="wstring" dir="in"> 6373 6373 <desc>UUID of the host USB device to attach.</desc> 6374 6374 </param> … … 6394 6394 </result> 6395 6395 </desc> 6396 <param name="id" type=" uuid" dir="in">6396 <param name="id" type="wstring" dir="in"> 6397 6397 <desc>UUID of the USB device to detach.</desc> 6398 6398 </param> … … 6433 6433 <see>IUSBDevice::id</see> 6434 6434 </desc> 6435 <param name="id" type=" uuid" dir="in">6435 <param name="id" type="wstring" dir="in"> 6436 6436 <desc>UUID of the USB device to search for.</desc> 6437 6437 </param> … … 6606 6606 </result> 6607 6607 </desc> 6608 <param name="id" type=" uuid" dir="in">6608 <param name="id" type="wstring" dir="in"> 6609 6609 <desc>UUID of the snapshot to discard.</desc> 6610 6610 </param> … … 6880 6880 </attribute> 6881 6881 6882 <attribute name="id" type=" uuid" readonly="yes">6882 <attribute name="id" type="wstring" readonly="yes"> 6883 6883 <desc>Returns the interface UUID.</desc> 6884 6884 </attribute> … … 7135 7135 </result> 7136 7136 </desc> 7137 <param name="id" type=" uuid" dir="in">7137 <param name="id" type="wstring" dir="in"> 7138 7138 <desc> 7139 7139 Adapter GUID. … … 7298 7298 </note> 7299 7299 </desc> 7300 <param name="id" type=" uuid" dir="in">7300 <param name="id" type="wstring" dir="in"> 7301 7301 <desc>GUID of the host network interface to search for.</desc> 7302 7302 </param> … … 7327 7327 <see>IHostUSBDevice::id</see> 7328 7328 </desc> 7329 <param name="id" type=" uuid" dir="in">7329 <param name="id" type="wstring" dir="in"> 7330 7330 <desc>UUID of the USB device to search for.</desc> 7331 7331 </param> … … 7860 7860 </desc> 7861 7861 7862 <attribute name="id" type=" uuid" readonly="yes">7862 <attribute name="id" type="wstring" readonly="yes"> 7863 7863 <desc>ID of the task.</desc> 7864 7864 </attribute> … … 7906 7906 </attribute> 7907 7907 7908 <attribute name="resultCode" type=" result" readonly="yes">7908 <attribute name="resultCode" type="long" readonly="yes"> 7909 7909 <desc> 7910 7910 Result code of the progress task. … … 8147 8147 </desc> 8148 8148 8149 <attribute name="id" type=" uuid" readonly="yes">8149 <attribute name="id" type="wstring" readonly="yes"> 8150 8150 <desc>UUID of the snapshot.</desc> 8151 8151 </attribute> … … 8359 8359 </desc> 8360 8360 8361 <attribute name="id" type=" uuid" readonly="yes">8361 <attribute name="id" type="wstring" readonly="yes"> 8362 8362 <desc> 8363 8363 UUID of the medium. For a newly created medium, this value is a randomly … … 8489 8489 </attribute> 8490 8490 8491 <attribute name="machineIds" type=" uuid" safearray="yes" readonly="yes">8491 <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes"> 8492 8492 <desc> 8493 8493 Array of UUIDs of all machines this medium is attached to. … … 8522 8522 the snapshots. 8523 8523 </desc> 8524 <param name="machineId" type=" uuid" dir="in">8524 <param name="machineId" type="wstring" dir="in"> 8525 8525 <desc> 8526 8526 UUID of the machine to query. 8527 8527 </desc> 8528 8528 </param> 8529 <param name="snapshotIds" type=" uuid" safearray="yes" dir="return">8529 <param name="snapshotIds" type="wstring" safearray="yes" dir="return"> 8530 8530 <desc> 8531 8531 Array of snapshot UUIDs of the given machine using this medium. … … 9552 9552 </note> 9553 9553 </desc> 9554 <param name="targetId" type=" uuid" dir="in">9554 <param name="targetId" type="wstring" dir="in"> 9555 9555 <desc>UUID of the target ancestor or descendant hard disk.</desc> 9556 9556 </param> … … 9942 9942 9943 9943 </desc> 9944 <param name="imageId" type=" uuid" dir="in"/>9944 <param name="imageId" type="wstring" dir="in"/> 9945 9945 </method> 9946 9946 … … 10008 10008 10009 10009 </desc> 10010 <param name="imageId" type=" uuid" dir="in"/>10010 <param name="imageId" type="wstring" dir="in"/> 10011 10011 </method> 10012 10012 … … 11525 11525 </desc> 11526 11526 11527 <attribute name="id" type=" uuid" readonly="yes">11527 <attribute name="id" type="wstring" readonly="yes"> 11528 11528 <desc> 11529 11529 Unique USB device ID. This ID is built from #vendorId, … … 12443 12443 12444 12444 </desc> 12445 <param name="id" type=" uuid" dir="in"/>12445 <param name="id" type="wstring" dir="in"/> 12446 12446 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/> 12447 12447 </method> -
trunk/src/VBox/Main/include/ApplianceImpl.h
r19134 r19239 52 52 COM_INTERFACE_ENTRY(ISupportErrorInfo) 53 53 COM_INTERFACE_ENTRY(IAppliance) 54 COM_INTERFACE_ENTRY(IDispatch) 54 55 END_COM_MAP() 55 56 -
trunk/src/VBox/Main/include/AudioAdapterImpl.h
r19134 r19239 63 63 COM_INTERFACE_ENTRY(ISupportErrorInfo) 64 64 COM_INTERFACE_ENTRY(IAudioAdapter) 65 COM_INTERFACE_ENTRY(IDispatch) 65 66 END_COM_MAP() 66 67 -
trunk/src/VBox/Main/include/BIOSSettingsImpl.h
r19134 r19239 84 84 COM_INTERFACE_ENTRY(ISupportErrorInfo) 85 85 COM_INTERFACE_ENTRY(IBIOSSettings) 86 COM_INTERFACE_ENTRY(IDispatch) 86 87 END_COM_MAP() 87 88 -
trunk/src/VBox/Main/include/ConsoleImpl.h
r19134 r19239 93 93 COM_INTERFACE_ENTRY(ISupportErrorInfo) 94 94 COM_INTERFACE_ENTRY(IConsole) 95 COM_INTERFACE_ENTRY(IDispatch) 95 96 END_COM_MAP() 96 97 … … 137 138 STDMETHOD(GetDeviceActivity) (DeviceType_T aDeviceType, 138 139 DeviceActivity_T *aDeviceActivity); 139 STDMETHOD(AttachUSBDevice) (IN_ GUIDaId);140 STDMETHOD(DetachUSBDevice) (IN_ GUIDaId, IUSBDevice **aDevice);140 STDMETHOD(AttachUSBDevice) (IN_BSTR aId); 141 STDMETHOD(DetachUSBDevice) (IN_BSTR aId, IUSBDevice **aDevice); 141 142 STDMETHOD(FindUSBDeviceByAddress) (IN_BSTR aAddress, IUSBDevice **aDevice); 142 STDMETHOD(FindUSBDeviceById) (IN_ GUIDaId, IUSBDevice **aDevice);143 STDMETHOD(FindUSBDeviceById) (IN_BSTR aId, IUSBDevice **aDevice); 143 144 STDMETHOD(CreateSharedFolder) (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable); 144 145 STDMETHOD(RemoveSharedFolder) (IN_BSTR aName); 145 146 STDMETHOD(TakeSnapshot) (IN_BSTR aName, IN_BSTR aDescription, 146 147 IProgress **aProgress); 147 STDMETHOD(DiscardSnapshot) (IN_ GUIDaId, IProgress **aProgress);148 STDMETHOD(DiscardSnapshot) (IN_BSTR aId, IProgress **aProgress); 148 149 STDMETHOD(DiscardCurrentState) (IProgress **aProgress); 149 150 STDMETHOD(DiscardCurrentSnapshotAndState) (IProgress **aProgress); … … 184 185 HRESULT onSharedFolderChange (BOOL aGlobal); 185 186 HRESULT onUSBDeviceAttach (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs); 186 HRESULT onUSBDeviceDetach (IN_ GUIDaId, IVirtualBoxErrorInfo *aError);187 HRESULT onUSBDeviceDetach (IN_BSTR aId, IVirtualBoxErrorInfo *aError); 187 188 HRESULT getGuestProperty (IN_BSTR aKey, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags); 188 189 HRESULT setGuestProperty (IN_BSTR aKey, IN_BSTR aValue, IN_BSTR aFlags); -
trunk/src/VBox/Main/include/ConsoleVRDPServer.h
r19134 r19239 249 249 COM_INTERFACE_ENTRY(ISupportErrorInfo) 250 250 COM_INTERFACE_ENTRY(IRemoteDisplayInfo) 251 COM_INTERFACE_ENTRY(IDispatch) 251 252 END_COM_MAP() 252 253 -
trunk/src/VBox/Main/include/DHCPServerImpl.h
r19134 r19239 51 51 COM_INTERFACE_ENTRY (ISupportErrorInfo) 52 52 COM_INTERFACE_ENTRY (IDHCPServer) 53 COM_INTERFACE_ENTRY (IDispatch) 53 54 END_COM_MAP() 54 55 -
trunk/src/VBox/Main/include/DVDDriveImpl.h
r19134 r19239 70 70 COM_INTERFACE_ENTRY(ISupportErrorInfo) 71 71 COM_INTERFACE_ENTRY(IDVDDrive) 72 COM_INTERFACE_ENTRY(IDispatch) 72 73 END_COM_MAP() 73 74 … … 91 92 92 93 // IDVDDrive methods 93 STDMETHOD(MountImage) (IN_ GUIDaImageId);94 STDMETHOD(MountImage) (IN_BSTR aImageId); 94 95 STDMETHOD(CaptureHostDrive) (IHostDVDDrive *aHostDVDDrive); 95 96 STDMETHOD(Unmount)(); -
trunk/src/VBox/Main/include/DisplayImpl.h
r19134 r19239 101 101 COM_INTERFACE_ENTRY(ISupportErrorInfo) 102 102 COM_INTERFACE_ENTRY(IDisplay) 103 COM_INTERFACE_ENTRY2(IDispatch,IDisplay) 103 104 END_COM_MAP() 104 105 -
trunk/src/VBox/Main/include/FloppyDriveImpl.h
r19134 r19239 70 70 COM_INTERFACE_ENTRY(ISupportErrorInfo) 71 71 COM_INTERFACE_ENTRY(IFloppyDrive) 72 COM_INTERFACE_ENTRY(IDispatch) 72 73 END_COM_MAP() 73 74 … … 91 92 92 93 // IFloppyDrive methods 93 STDMETHOD(MountImage) (IN_ GUIDaImageId);94 STDMETHOD(MountImage) (IN_BSTR aImageId); 94 95 STDMETHOD(CaptureHostDrive) (IHostFloppyDrive *aHostFloppyDrive); 95 96 STDMETHOD(Unmount)(); -
trunk/src/VBox/Main/include/FramebufferImpl.h
r19134 r19239 40 40 BEGIN_COM_MAP(InternalFramebuffer) 41 41 COM_INTERFACE_ENTRY(IFramebuffer) 42 COM_INTERFACE_ENTRY(IDispatch) 42 43 END_COM_MAP() 43 44 -
trunk/src/VBox/Main/include/GuestImpl.h
r19134 r19239 45 45 COM_INTERFACE_ENTRY(ISupportErrorInfo) 46 46 COM_INTERFACE_ENTRY(IGuest) 47 COM_INTERFACE_ENTRY(IDispatch) 47 48 END_COM_MAP() 48 49 -
trunk/src/VBox/Main/include/GuestOSTypeImpl.h
r19134 r19239 45 45 COM_INTERFACE_ENTRY(ISupportErrorInfo) 46 46 COM_INTERFACE_ENTRY(IGuestOSType) 47 COM_INTERFACE_ENTRY(IDispatch) 47 48 END_COM_MAP() 48 49 -
trunk/src/VBox/Main/include/HardDiskAttachmentImpl.h
r19134 r19239 74 74 COM_INTERFACE_ENTRY(ISupportErrorInfo) 75 75 COM_INTERFACE_ENTRY(IHardDiskAttachment) 76 COM_INTERFACE_ENTRY(IDispatch) 76 77 END_COM_MAP() 77 78 -
trunk/src/VBox/Main/include/HardDiskFormatImpl.h
r19134 r19239 82 82 COM_INTERFACE_ENTRY (ISupportErrorInfo) 83 83 COM_INTERFACE_ENTRY (IHardDiskFormat) 84 COM_INTERFACE_ENTRY (IDispatch) 84 85 END_COM_MAP() 85 86 -
trunk/src/VBox/Main/include/HardDiskImpl.h
r19134 r19239 65 65 66 66 BEGIN_COM_MAP (HardDisk) 67 COM_INTERFACE_ENTRY (ISupportErrorInfo)67 COM_INTERFACE_ENTRY (ISupportErrorInfo) 68 68 COM_INTERFACE_ENTRY2 (IMedium, MediumBase) 69 COM_INTERFACE_ENTRY (IHardDisk) 69 COM_INTERFACE_ENTRY (IHardDisk) 70 COM_INTERFACE_ENTRY2 (IDispatch, IHardDisk) 71 COM_INTERFACE_ENTRY2 (IDispatch, MediumBase) 70 72 END_COM_MAP() 71 73 … … 124 126 HardDiskVariant_T aVariant, 125 127 IProgress **aProgress); 126 STDMETHOD(MergeTo) (IN_ GUIDaTargetId, IProgress **aProgress);128 STDMETHOD(MergeTo) (IN_BSTR aTargetId, IProgress **aProgress); 127 129 STDMETHOD(CloneTo) (IHardDisk *aTarget, HardDiskVariant_T aVariant, 128 130 IHardDisk *aParent, IProgress **aProgress); -
trunk/src/VBox/Main/include/HostDVDDriveImpl.h
r19134 r19239 42 42 COM_INTERFACE_ENTRY(ISupportErrorInfo) 43 43 COM_INTERFACE_ENTRY(IHostDVDDrive) 44 COM_INTERFACE_ENTRY(IDispatch) 44 45 END_COM_MAP() 45 46 -
trunk/src/VBox/Main/include/HostFloppyDriveImpl.h
r19134 r19239 42 42 COM_INTERFACE_ENTRY(ISupportErrorInfo) 43 43 COM_INTERFACE_ENTRY(IHostFloppyDrive) 44 COM_INTERFACE_ENTRY(IDispatch) 44 45 END_COM_MAP() 45 46 -
trunk/src/VBox/Main/include/HostImpl.h
r19134 r19239 65 65 COM_INTERFACE_ENTRY(ISupportErrorInfo) 66 66 COM_INTERFACE_ENTRY(IHost) 67 COM_INTERFACE_ENTRY(IDispatch) 67 68 END_COM_MAP() 68 69 … … 96 97 STDMETHOD(CreateHostOnlyNetworkInterface) (IHostNetworkInterface **aHostNetworkInterface, 97 98 IProgress **aProgress); 98 STDMETHOD(RemoveHostOnlyNetworkInterface) (IN_ GUIDaId,99 STDMETHOD(RemoveHostOnlyNetworkInterface) (IN_BSTR aId, 99 100 IHostNetworkInterface **aHostNetworkInterface, 100 101 IProgress **aProgress); … … 106 107 STDMETHOD(FindHostFloppyDrive) (IN_BSTR aName, IHostFloppyDrive **aDrive); 107 108 STDMETHOD(FindHostNetworkInterfaceByName) (IN_BSTR aName, IHostNetworkInterface **networkInterface); 108 STDMETHOD(FindHostNetworkInterfaceById) (IN_ GUIDid, IHostNetworkInterface **networkInterface);109 STDMETHOD(FindHostNetworkInterfaceById) (IN_BSTR id, IHostNetworkInterface **networkInterface); 109 110 STDMETHOD(FindHostNetworkInterfacesOfType) (HostNetworkInterfaceType_T type, ComSafeArrayOut (IHostNetworkInterface *, aNetworkInterfaces)); 110 111 STDMETHOD(FindUSBDeviceByAddress) (IN_BSTR aAddress, IHostUSBDevice **aDevice); 111 STDMETHOD(FindUSBDeviceById) (IN_ GUIDaId, IHostUSBDevice **aDevice);112 STDMETHOD(FindUSBDeviceById) (IN_BSTR aId, IHostUSBDevice **aDevice); 112 113 113 114 // public methods only for internal purposes -
trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h
r19134 r19239 51 51 COM_INTERFACE_ENTRY (ISupportErrorInfo) 52 52 COM_INTERFACE_ENTRY (IHostNetworkInterface) 53 COM_INTERFACE_ENTRY (IDispatch) 53 54 END_COM_MAP() 54 55 … … 69 70 // IHostNetworkInterface properties 70 71 STDMETHOD(COMGETTER(Name)) (BSTR *aInterfaceName); 71 STDMETHOD(COMGETTER(Id)) ( OUT_GUIDaGuid);72 STDMETHOD(COMGETTER(Id)) (BSTR *aGuid); 72 73 STDMETHOD(COMGETTER(DhcpEnabled)) (BOOL *aDhcpEnabled); 73 74 STDMETHOD(COMGETTER(IPAddress)) (BSTR *aIPAddress); -
trunk/src/VBox/Main/include/KeyboardImpl.h
r19134 r19239 65 65 COM_INTERFACE_ENTRY(ISupportErrorInfo) 66 66 COM_INTERFACE_ENTRY(IKeyboard) 67 COM_INTERFACE_ENTRY(IDispatch) 67 68 END_COM_MAP() 68 69 -
trunk/src/VBox/Main/include/MachineDebuggerImpl.h
r19134 r19239 46 46 COM_INTERFACE_ENTRY (ISupportErrorInfo) 47 47 COM_INTERFACE_ENTRY (IMachineDebugger) 48 COM_INTERFACE_ENTRY (IDispatch) 48 49 END_COM_MAP() 49 50 -
trunk/src/VBox/Main/include/MachineImpl.h
r19236 r19239 456 456 COM_INTERFACE_ENTRY(ISupportErrorInfo) 457 457 COM_INTERFACE_ENTRY(IMachine) 458 COM_INTERFACE_ENTRY(IDispatch) 458 459 END_COM_MAP() 459 460 … … 482 483 STDMETHOD(COMGETTER(Description))(BSTR *aDescription); 483 484 STDMETHOD(COMSETTER(Description))(IN_BSTR aDescription); 484 STDMETHOD(COMGETTER(Id))( OUT_GUIDaId);485 STDMETHOD(COMGETTER(Id))(BSTR *aId); 485 486 STDMETHOD(COMGETTER(OSTypeId)) (BSTR *aOSTypeId); 486 487 STDMETHOD(COMSETTER(OSTypeId)) (IN_BSTR aOSTypeId); … … 541 542 STDMETHOD(SetBootOrder)(ULONG aPosition, DeviceType_T aDevice); 542 543 STDMETHOD(GetBootOrder)(ULONG aPosition, DeviceType_T *aDevice); 543 STDMETHOD(AttachHardDisk)(IN_ GUIDaId, IN_BSTR aControllerName,544 STDMETHOD(AttachHardDisk)(IN_BSTR aId, IN_BSTR aControllerName, 544 545 LONG aControllerPort, LONG aDevice); 545 546 STDMETHOD(GetHardDisk)(IN_BSTR aControllerName, LONG aControllerPort, LONG aDevice, … … 557 558 STDMETHOD(DeleteSettings)(); 558 559 STDMETHOD(Export)(IAppliance *aAppliance, IVirtualSystemDescription **aDescription); 559 STDMETHOD(GetSnapshot) (IN_ GUIDaId, ISnapshot **aSnapshot);560 STDMETHOD(GetSnapshot) (IN_BSTR aId, ISnapshot **aSnapshot); 560 561 STDMETHOD(FindSnapshot) (IN_BSTR aName, ISnapshot **aSnapshot); 561 STDMETHOD(SetCurrentSnapshot) (IN_ GUIDaId);562 STDMETHOD(SetCurrentSnapshot) (IN_BSTR aId); 562 563 STDMETHOD(CreateSharedFolder) (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable); 563 564 STDMETHOD(RemoveSharedFolder) (IN_BSTR aName); … … 906 907 STDMETHOD(GetIPCId)(BSTR *id); 907 908 STDMETHOD(RunUSBDeviceFilters) (IUSBDevice *aUSBDevice, BOOL *aMatched, ULONG *aMaskedIfs); 908 STDMETHOD(CaptureUSBDevice) (IN_ GUIDaId);909 STDMETHOD(DetachUSBDevice) (IN_ GUIDaId, BOOL aDone);909 STDMETHOD(CaptureUSBDevice) (IN_BSTR aId); 910 STDMETHOD(DetachUSBDevice) (IN_BSTR aId, BOOL aDone); 910 911 STDMETHOD(AutoCaptureUSBDevices)(); 911 912 STDMETHOD(DetachAllUSBDevices)(BOOL aDone); … … 919 920 IProgress **aServerProgress); 920 921 STDMETHOD(EndTakingSnapshot) (BOOL aSuccess); 921 STDMETHOD(DiscardSnapshot) (IConsole *aInitiator, IN_ GUIDaId,922 STDMETHOD(DiscardSnapshot) (IConsole *aInitiator, IN_BSTR aId, 922 923 MachineState_T *aMachineState, IProgress **aProgress); 923 924 STDMETHOD(DiscardCurrentState) ( … … 948 949 IVirtualBoxErrorInfo *aError, 949 950 ULONG aMaskedIfs); 950 HRESULT onUSBDeviceDetach (IN_ GUIDaId,951 HRESULT onUSBDeviceDetach (IN_BSTR aId, 951 952 IVirtualBoxErrorInfo *aError); 952 953 HRESULT onSharedFolderChange(); -
trunk/src/VBox/Main/include/MediumImpl.h
r19134 r19239 92 92 93 93 // IMedium properties 94 STDMETHOD(COMGETTER(Id)) ( OUT_GUIDaId);94 STDMETHOD(COMGETTER(Id)) (BSTR *aId); 95 95 STDMETHOD(COMGETTER(Description)) (BSTR *aDescription); 96 96 STDMETHOD(COMSETTER(Description)) (IN_BSTR aDescription); … … 101 101 STDMETHOD(COMGETTER(Size)) (ULONG64 *aSize); 102 102 STDMETHOD(COMGETTER(LastAccessError)) (BSTR *aLastAccessError); 103 STDMETHOD(COMGETTER(MachineIds)) (ComSafe GUIDArrayOut (aMachineIds));103 STDMETHOD(COMGETTER(MachineIds)) (ComSafeArrayOut (BSTR, aMachineIds)); 104 104 105 105 // IMedium methods 106 STDMETHOD(GetSnapshotIds) (IN_ GUIDaMachineId,107 ComSafe GUIDArrayOut (aSnapshotIds));106 STDMETHOD(GetSnapshotIds) (IN_BSTR aMachineId, 107 ComSafeArrayOut (BSTR, aSnapshotIds)); 108 108 STDMETHOD(LockRead) (MediaState_T *aState); 109 109 STDMETHOD(UnlockRead) (MediaState_T *aState); … … 254 254 255 255 BEGIN_COM_MAP (DVDImage) 256 COM_INTERFACE_ENTRY (ISupportErrorInfo)256 COM_INTERFACE_ENTRY (ISupportErrorInfo) 257 257 COM_INTERFACE_ENTRY2 (IMedium, ImageMediumBase) 258 COM_INTERFACE_ENTRY (IDVDImage) 258 COM_INTERFACE_ENTRY (IDVDImage) 259 COM_INTERFACE_ENTRY2 (IDispatch, IDVDImage) 259 260 END_COM_MAP() 260 261 … … 307 308 308 309 BEGIN_COM_MAP (FloppyImage) 309 COM_INTERFACE_ENTRY (ISupportErrorInfo)310 COM_INTERFACE_ENTRY (ISupportErrorInfo) 310 311 COM_INTERFACE_ENTRY2 (IMedium, ImageMediumBase) 311 COM_INTERFACE_ENTRY (IFloppyImage) 312 COM_INTERFACE_ENTRY (IFloppyImage) 313 COM_INTERFACE_ENTRY2 (IDispatch, IFloppyImage) 312 314 END_COM_MAP() 313 315 -
trunk/src/VBox/Main/include/MouseImpl.h
r19134 r19239 64 64 65 65 BEGIN_COM_MAP(Mouse) 66 COM_INTERFACE_ENTRY(ISupportErrorInfo) 67 COM_INTERFACE_ENTRY(IMouse) 66 COM_INTERFACE_ENTRY (ISupportErrorInfo) 67 COM_INTERFACE_ENTRY (IMouse) 68 COM_INTERFACE_ENTRY2 (IDispatch, IMouse) 68 69 END_COM_MAP() 69 70 -
trunk/src/VBox/Main/include/NetworkAdapterImpl.h
r19134 r19239 83 83 84 84 BEGIN_COM_MAP(NetworkAdapter) 85 COM_INTERFACE_ENTRY(ISupportErrorInfo) 86 COM_INTERFACE_ENTRY(INetworkAdapter) 85 COM_INTERFACE_ENTRY (ISupportErrorInfo) 86 COM_INTERFACE_ENTRY (INetworkAdapter) 87 COM_INTERFACE_ENTRY2 (IDispatch, INetworkAdapter) 87 88 END_COM_MAP() 88 89 -
trunk/src/VBox/Main/include/ParallelPortImpl.h
r19134 r19239 69 69 70 70 BEGIN_COM_MAP(ParallelPort) 71 COM_INTERFACE_ENTRY(ISupportErrorInfo) 72 COM_INTERFACE_ENTRY(IParallelPort) 71 COM_INTERFACE_ENTRY (ISupportErrorInfo) 72 COM_INTERFACE_ENTRY (IParallelPort) 73 COM_INTERFACE_ENTRY2 (IDispatch, IParallelPort) 73 74 END_COM_MAP() 74 75 -
trunk/src/VBox/Main/include/PerformanceImpl.h
r19134 r19239 64 64 BEGIN_COM_MAP (PerformanceMetric) 65 65 COM_INTERFACE_ENTRY (IPerformanceMetric) 66 COM_INTERFACE_ENTRY (IDispatch) 66 67 END_COM_MAP() 67 68 … … 136 137 COM_INTERFACE_ENTRY(ISupportErrorInfo) 137 138 COM_INTERFACE_ENTRY(IPerformanceCollector) 139 COM_INTERFACE_ENTRY(IDispatch) 138 140 END_COM_MAP() 139 141 -
trunk/src/VBox/Main/include/ProgressImpl.h
r19134 r19239 66 66 67 67 // IProgress properties 68 STDMETHOD(COMGETTER(Id)) ( OUT_GUIDaId);68 STDMETHOD(COMGETTER(Id)) (BSTR *aId); 69 69 STDMETHOD(COMGETTER(Description)) (BSTR *aDescription); 70 70 STDMETHOD(COMGETTER(Initiator)) (IUnknown **aInitiator); … … 146 146 147 147 BEGIN_COM_MAP (Progress) 148 COM_INTERFACE_ENTRY (ISupportErrorInfo) 149 COM_INTERFACE_ENTRY (IProgress) 148 COM_INTERFACE_ENTRY (ISupportErrorInfo) 149 COM_INTERFACE_ENTRY (IProgress) 150 COM_INTERFACE_ENTRY2 (IDispatch, IProgress) 150 151 END_COM_MAP() 151 152 … … 317 318 318 319 BEGIN_COM_MAP (CombinedProgress) 319 COM_INTERFACE_ENTRY (ISupportErrorInfo) 320 COM_INTERFACE_ENTRY (IProgress) 320 COM_INTERFACE_ENTRY (ISupportErrorInfo) 321 COM_INTERFACE_ENTRY (IProgress) 322 COM_INTERFACE_ENTRY2 (IDispatch, IProgress) 321 323 END_COM_MAP() 322 324 -
trunk/src/VBox/Main/include/RemoteUSBDeviceImpl.h
r19134 r19239 46 46 47 47 BEGIN_COM_MAP (RemoteUSBDevice) 48 COM_INTERFACE_ENTRY (ISupportErrorInfo) 49 COM_INTERFACE_ENTRY (IHostUSBDevice) 50 COM_INTERFACE_ENTRY (IUSBDevice) 48 COM_INTERFACE_ENTRY (ISupportErrorInfo) 49 COM_INTERFACE_ENTRY (IHostUSBDevice) 50 COM_INTERFACE_ENTRY (IUSBDevice) 51 COM_INTERFACE_ENTRY2 (IDispatch, IUSBDevice) 51 52 END_COM_MAP() 52 53 … … 63 64 64 65 // IUSBDevice properties 65 STDMETHOD(COMGETTER(Id)) ( OUT_GUIDaId);66 STDMETHOD(COMGETTER(Id)) (BSTR *aId); 66 67 STDMETHOD(COMGETTER(VendorId)) (USHORT *aVendorId); 67 68 STDMETHOD(COMGETTER(ProductId)) (USHORT *aProductId); -
trunk/src/VBox/Main/include/SerialPortImpl.h
r19134 r19239 76 76 77 77 BEGIN_COM_MAP(SerialPort) 78 COM_INTERFACE_ENTRY(ISupportErrorInfo) 79 COM_INTERFACE_ENTRY(ISerialPort) 78 COM_INTERFACE_ENTRY (ISupportErrorInfo) 79 COM_INTERFACE_ENTRY (ISerialPort) 80 COM_INTERFACE_ENTRY2 (IDispatch, ISerialPort) 80 81 END_COM_MAP() 81 82 -
trunk/src/VBox/Main/include/SessionImpl.h
r19134 r19239 46 46 public VirtualBoxSupportTranslation <Session>, 47 47 #ifdef RT_OS_WINDOWS 48 public IDispatchImpl<ISession, &IID_ISession, &LIBID_VirtualBox, 49 kTypeLibraryMajorVersion, kTypeLibraryMinorVersion>, 50 public IDispatchImpl<IInternalSessionControl, &IID_IInternalSessionControl, &LIBID_VirtualBox, 51 kTypeLibraryMajorVersion, kTypeLibraryMinorVersion>, 48 VBOX_SCRIPTABLE_IMPL(ISession), 49 VBOX_SCRIPTABLE_IMPL(IInternalSessionControl), 52 50 public CComCoClass<Session, &CLSID_Session> 53 51 #else … … 66 64 67 65 BEGIN_COM_MAP(Session) 68 //COM_INTERFACE_ENTRY(IDispatch) 66 COM_INTERFACE_ENTRY2(IDispatch, ISession) 67 COM_INTERFACE_ENTRY2(IDispatch, IInternalSessionControl) 69 68 COM_INTERFACE_ENTRY(IInternalSessionControl) 70 69 COM_INTERFACE_ENTRY(ISupportErrorInfo) … … 107 106 STDMETHOD(OnSharedFolderChange) (BOOL aGlobal); 108 107 STDMETHOD(OnUSBDeviceAttach) (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs); 109 STDMETHOD(OnUSBDeviceDetach) (IN_ GUIDaId, IVirtualBoxErrorInfo *aError);108 STDMETHOD(OnUSBDeviceDetach) (IN_BSTR aId, IVirtualBoxErrorInfo *aError); 110 109 STDMETHOD(OnShowWindow) (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId); 111 110 STDMETHOD(AccessGuestProperty) (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags, -
trunk/src/VBox/Main/include/SharedFolderImpl.h
r19134 r19239 55 55 56 56 BEGIN_COM_MAP(SharedFolder) 57 COM_INTERFACE_ENTRY(ISupportErrorInfo) 58 COM_INTERFACE_ENTRY(ISharedFolder) 57 COM_INTERFACE_ENTRY (ISupportErrorInfo) 58 COM_INTERFACE_ENTRY (ISharedFolder) 59 COM_INTERFACE_ENTRY2 (IDispatch, ISharedFolder) 59 60 END_COM_MAP() 60 61 -
trunk/src/VBox/Main/include/SnapshotImpl.h
r19134 r19239 59 59 60 60 BEGIN_COM_MAP(Snapshot) 61 COM_INTERFACE_ENTRY(ISupportErrorInfo) 62 COM_INTERFACE_ENTRY(ISnapshot) 61 COM_INTERFACE_ENTRY (ISupportErrorInfo) 62 COM_INTERFACE_ENTRY (ISnapshot) 63 COM_INTERFACE_ENTRY2 (IDispatch, ISnapshot) 63 64 END_COM_MAP() 64 65 … … 77 78 78 79 // ISnapshot properties 79 STDMETHOD(COMGETTER(Id)) ( OUT_GUIDaId);80 STDMETHOD(COMGETTER(Id)) (BSTR *aId); 80 81 STDMETHOD(COMGETTER(Name)) (BSTR *aName); 81 82 STDMETHOD(COMSETTER(Name)) (IN_BSTR aName); -
trunk/src/VBox/Main/include/StorageControllerImpl.h
r19134 r19239 90 90 91 91 BEGIN_COM_MAP(StorageController) 92 COM_INTERFACE_ENTRY (ISupportErrorInfo) 93 COM_INTERFACE_ENTRY (IStorageController) 92 COM_INTERFACE_ENTRY (ISupportErrorInfo) 93 COM_INTERFACE_ENTRY (IStorageController) 94 COM_INTERFACE_ENTRY2 (IDispatch, IStorageController) 94 95 END_COM_MAP() 95 96 -
trunk/src/VBox/Main/include/SystemPropertiesImpl.h
r19134 r19239 49 49 50 50 BEGIN_COM_MAP(SystemProperties) 51 COM_INTERFACE_ENTRY(ISupportErrorInfo) 52 COM_INTERFACE_ENTRY(ISystemProperties) 51 COM_INTERFACE_ENTRY (ISupportErrorInfo) 52 COM_INTERFACE_ENTRY (ISystemProperties) 53 COM_INTERFACE_ENTRY2 (IDispatch, ISystemProperties) 53 54 END_COM_MAP() 54 55 -
trunk/src/VBox/Main/include/USBControllerImpl.h
r19134 r19239 76 76 77 77 BEGIN_COM_MAP(USBController) 78 COM_INTERFACE_ENTRY (ISupportErrorInfo) 79 COM_INTERFACE_ENTRY (IUSBController) 78 COM_INTERFACE_ENTRY (ISupportErrorInfo) 79 COM_INTERFACE_ENTRY (IUSBController) 80 COM_INTERFACE_ENTRY2 (IDispatch, IUSBController) 80 81 END_COM_MAP() 81 82 -
trunk/src/VBox/Main/include/USBDeviceImpl.h
r19134 r19239 47 47 48 48 BEGIN_COM_MAP(OUSBDevice) 49 COM_INTERFACE_ENTRY (ISupportErrorInfo) 50 COM_INTERFACE_ENTRY (IUSBDevice) 49 COM_INTERFACE_ENTRY (ISupportErrorInfo) 50 COM_INTERFACE_ENTRY (IUSBDevice) 51 COM_INTERFACE_ENTRY2 (IDispatch, IUSBDevice) 51 52 END_COM_MAP() 52 53 … … 63 64 64 65 // IUSBDevice properties 65 STDMETHOD(COMGETTER(Id))( OUT_GUIDaId);66 STDMETHOD(COMGETTER(Id))(BSTR *aId); 66 67 STDMETHOD(COMGETTER(VendorId))(USHORT *aVendorId); 67 68 STDMETHOD(COMGETTER(ProductId))(USHORT *aProductId); -
trunk/src/VBox/Main/include/VRDPServerImpl.h
r19134 r19239 69 69 70 70 BEGIN_COM_MAP(VRDPServer) 71 COM_INTERFACE_ENTRY(ISupportErrorInfo) 72 COM_INTERFACE_ENTRY(IVRDPServer) 71 COM_INTERFACE_ENTRY (ISupportErrorInfo) 72 COM_INTERFACE_ENTRY (IVRDPServer) 73 COM_INTERFACE_ENTRY2 (IDispatch, IVRDPServer) 73 74 END_COM_MAP() 74 75 -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r19236 r19239 139 139 140 140 STDMETHOD(CreateMachine) (IN_BSTR aName, IN_BSTR aOsTypeId, IN_BSTR aBaseFolder, 141 IN_ GUIDaId, IMachine **aMachine);141 IN_BSTR aId, IMachine **aMachine); 142 142 STDMETHOD(CreateLegacyMachine) (IN_BSTR aName, IN_BSTR aOsTypeId, IN_BSTR aSettingsFile, 143 IN_ GUIDaId, IMachine **aMachine);143 IN_BSTR aId, IMachine **aMachine); 144 144 STDMETHOD(OpenMachine) (IN_BSTR aSettingsFile, IMachine **aMachine); 145 145 STDMETHOD(RegisterMachine) (IMachine *aMachine); 146 STDMETHOD(GetMachine) (IN_ GUIDaId, IMachine **aMachine);146 STDMETHOD(GetMachine) (IN_BSTR aId, IMachine **aMachine); 147 147 STDMETHOD(FindMachine) (IN_BSTR aName, IMachine **aMachine); 148 STDMETHOD(UnregisterMachine) (IN_ GUIDaId, IMachine **aMachine);148 STDMETHOD(UnregisterMachine) (IN_BSTR aId, IMachine **aMachine); 149 149 STDMETHOD(CreateAppliance) (IAppliance **anAppliance); 150 150 … … 152 152 IHardDisk **aHardDisk); 153 153 STDMETHOD(OpenHardDisk) (IN_BSTR aLocation, AccessMode_T accessMode, IHardDisk **aHardDisk); 154 STDMETHOD(GetHardDisk) (IN_ GUIDaId, IHardDisk **aHardDisk);154 STDMETHOD(GetHardDisk) (IN_BSTR aId, IHardDisk **aHardDisk); 155 155 STDMETHOD(FindHardDisk) (IN_BSTR aLocation, IHardDisk **aHardDisk); 156 156 157 STDMETHOD(OpenDVDImage) (IN_BSTR aLocation, IN_ GUIDaId,157 STDMETHOD(OpenDVDImage) (IN_BSTR aLocation, IN_BSTR aId, 158 158 IDVDImage **aDVDImage); 159 STDMETHOD(GetDVDImage) (IN_ GUIDaId, IDVDImage **aDVDImage);159 STDMETHOD(GetDVDImage) (IN_BSTR aId, IDVDImage **aDVDImage); 160 160 STDMETHOD(FindDVDImage) (IN_BSTR aLocation, IDVDImage **aDVDImage); 161 161 162 STDMETHOD(OpenFloppyImage) (IN_BSTR aLocation, IN_ GUIDaId,162 STDMETHOD(OpenFloppyImage) (IN_BSTR aLocation, IN_BSTR aId, 163 163 IFloppyImage **aFloppyImage); 164 STDMETHOD(GetFloppyImage) (IN_ GUIDaId, IFloppyImage **aFloppyImage);164 STDMETHOD(GetFloppyImage) (IN_BSTR aId, IFloppyImage **aFloppyImage); 165 165 STDMETHOD(FindFloppyImage) (IN_BSTR aLocation, IFloppyImage **aFloppyImage); 166 166 … … 171 171 STDMETHOD(GetExtraData) (IN_BSTR aKey, BSTR *aValue); 172 172 STDMETHOD(SetExtraData) (IN_BSTR aKey, IN_BSTR aValue); 173 STDMETHOD(OpenSession) (ISession *aSession, IN_ GUIDaMachineId);174 STDMETHOD(OpenRemoteSession) (ISession *aSession, IN_ GUIDaMachineId,173 STDMETHOD(OpenSession) (ISession *aSession, IN_BSTR aMachineId); 174 STDMETHOD(OpenRemoteSession) (ISession *aSession, IN_BSTR aMachineId, 175 175 IN_BSTR aType, IN_BSTR aEnvironment, 176 176 IProgress **aProgress); 177 STDMETHOD(OpenExistingSession) (ISession *aSession, IN_ GUIDaMachineId);177 STDMETHOD(OpenExistingSession) (ISession *aSession, IN_BSTR aMachineId); 178 178 179 179 STDMETHOD(RegisterCallback) (IVirtualBoxCallback *aCallback); -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r18177 r19239 73 73 74 74 printf("Getting machine GUID...\n"); 75 Guid guid;75 Bstr guid; 76 76 CHECK_RC (machine->COMGETTER(Id) (guid.asOutParam())); 77 77 if (SUCCEEDED (rc) && !guid.isEmpty()) { 78 printf ("Guid::toString(): {%s}\n", (const char *) guid.toString());78 printf ("Guid::toString(): {%s}\n", Utf8Str(guid).c_str()); 79 79 } else { 80 80 printf ("WARNING: there's no GUID!"); -
trunk/src/VBox/Main/win/NetIf-win.cpp
r19233 r19239 1025 1025 if(hr == S_OK) 1026 1026 { 1027 GUIDIfGuid;1028 hr = pIf->COMGETTER(Id)( &IfGuid);1027 Bstr IfGuid; 1028 hr = pIf->COMGETTER(Id)(IfGuid.asOutParam()); 1029 1029 Assert(hr == S_OK); 1030 1030 if (hr == S_OK) … … 1156 1156 #else 1157 1157 HRESULT rc; 1158 GUIDguid;1159 rc = pIf->COMGETTER(Id) ( &guid);1158 Bstr guid; 1159 rc = pIf->COMGETTER(Id) (guid.asOutParam()); 1160 1160 if(SUCCEEDED(rc)) 1161 1161 { … … 1185 1185 1186 1186 d->msgCode = SVCHlpMsg::EnableStaticIpConfig; 1187 d->guid = guid;1187 d->guid = Guid(guid); 1188 1188 d->iface = pIf; 1189 1189 d->u.StaticIP.IPAddress = ip; … … 1218 1218 #else 1219 1219 HRESULT rc; 1220 GUIDguid;1221 rc = pIf->COMGETTER(Id) ( &guid);1220 Bstr guid; 1221 rc = pIf->COMGETTER(Id) (guid.asOutParam()); 1222 1222 if(SUCCEEDED(rc)) 1223 1223 { … … 1280 1280 #else 1281 1281 HRESULT rc; 1282 GUIDguid;1283 rc = pIf->COMGETTER(Id) ( &guid);1282 Bstr guid; 1283 rc = pIf->COMGETTER(Id) (guid.asOutParam()); 1284 1284 if(SUCCEEDED(rc)) 1285 1285 { … … 1340 1340 #else 1341 1341 HRESULT rc; 1342 GUIDguid;1343 rc = pIf->COMGETTER(Id) ( &guid);1342 Bstr guid; 1343 rc = pIf->COMGETTER(Id) (guid.asOutParam()); 1344 1344 if(SUCCEEDED(rc)) 1345 1345 { -
trunk/src/VBox/Main/win/dllmain.cpp
r8155 r19239 28 28 #include <atlcom.h> 29 29 30 #include <iprt/initterm.h> 31 30 32 CComModule _Module; 31 33 … … 44 46 _Module.Init(ObjectMap, hInstance, &LIBID_VirtualBox); 45 47 DisableThreadLibraryCalls(hInstance); 48 49 // idempotent, so doesn't harm, and needed for COM embedding scenario 50 RTR3Init(); 46 51 } 47 52 else if (dwReason == DLL_PROCESS_DETACH) -
trunk/src/VBox/Main/win/svchlp.cpp
r18488 r19239 248 248 int vrc = read (guidStr); 249 249 if (RT_SUCCESS (vrc)) 250 aGuid = Guid (guidStr );250 aGuid = Guid (guidStr.c_str()); 251 251 return vrc; 252 252 }
Note:
See TracChangeset
for help on using the changeset viewer.