- Timestamp:
- Dec 5, 2008 5:20:00 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 76 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/Guid.h
r13624 r15051 119 119 bool operator< (const GUID &guid) const { return ::RTUuidCompare (&uuid, (PRTUUID) &guid) < 0; } 120 120 121 /* to pass instances as GUIDPARAMparameters to interface methods */121 /* to pass instances as IN_GUID parameters to interface methods */ 122 122 operator const GUID &() const { return *(GUID *) &uuid; } 123 123 … … 133 133 #if !defined (VBOX_WITH_XPCOM) 134 134 135 /* to assign instances to GUIDPARAMOUTparameters from within the135 /* to assign instances to OUT_GUID parameters from within the 136 136 * interface method */ 137 137 const Guid &cloneTo (GUID *pguid) const … … 141 141 } 142 142 143 /* to pass instances as GUIDPARAMOUTparameters to interface methods */143 /* to pass instances as OUT_GUID parameters to interface methods */ 144 144 GUID *asOutParam() { return (GUID *) &uuid; } 145 145 146 146 #else 147 147 148 /* to assign instances to GUIDPARAMOUTparameters from within the148 /* to assign instances to OUT_GUID parameters from within the 149 149 * interface method */ 150 150 const Guid &cloneTo (nsID **ppguid) const … … 171 171 }; 172 172 173 /* to pass instances as GUIDPARAMOUTparameters to interface methods */173 /* to pass instances as OUT_GUID parameters to interface methods */ 174 174 GuidOutParam asOutParam() { return GuidOutParam (*this); } 175 175 176 176 #endif 177 177 178 /* to directly test GUIDPARAMinterface method's parameters */178 /* to directly test IN_GUID interface method's parameters */ 179 179 static bool isEmpty (const GUID &guid) 180 180 { -
trunk/include/VBox/com/VirtualBoxErrorInfo.h
r13580 r15051 86 86 // IVirtualBoxErrorInfo properties 87 87 STDMETHOD(COMGETTER(ResultCode)) (HRESULT *aResultCode); 88 STDMETHOD(COMGETTER(InterfaceID)) ( GUIDPARAMOUTaIID);88 STDMETHOD(COMGETTER(InterfaceID)) (OUT_GUID aIID); 89 89 STDMETHOD(COMGETTER(Component)) (BSTR *aComponent); 90 90 STDMETHOD(COMGETTER(Text)) (BSTR *aText); -
trunk/include/VBox/com/array.h
r15048 r15051 155 155 * 156 156 * Also note that in order to pass input BSTR array parameters declared 157 * using the ComSafeArrayIn (IN PTRBSTR, aParam) macro to the SafeArray<>158 * constructor using the ComSafeArrayInArg() macro, you should use IN PTRBSTR157 * using the ComSafeArrayIn (IN_BSTR, aParam) macro to the SafeArray<> 158 * constructor using the ComSafeArrayInArg() macro, you should use IN_BSTR 159 159 * as the SafeArray<> template argument, not just BSTR. 160 160 * -
trunk/include/VBox/com/defs.h
r13908 r15051 91 91 #define SUCCEEDED_WARNING(rc) (SUCCEEDED (rc) && (rc) != S_OK) 92 92 93 /** Input pointer argument prefix in the interface method declaration. */ 94 #define INPTR 93 /** Immutable BSTR string */ 94 typedef const OLECHAR *CBSTR; 95 96 /** Input BSTR argument the interface method declaration. */ 97 #define IN_BSTR BSTR 98 99 /** Input GUID argument the interface method declaration. */ 100 #define IN_GUID GUID 101 /** Output GUID argument the interface method declaration. */ 102 #define OUT_GUID GUID* 95 103 96 104 /** Makes the name of the getter interface function (n must be capitalized). */ … … 98 106 /** Makes the name of the setter interface function (n must be capitalized). */ 99 107 #define COMSETTER(n) put_##n 100 101 /** Type for an input GUID parameter in the interface method declaration. */102 #define GUIDPARAM GUID103 /** Type for an output GUID parameter in the interface method declaration. */104 #define GUIDPARAMOUT GUID*105 108 106 109 /** … … 265 268 #define ULONG64 PRUint64 266 269 267 #define BSTR PRUnichar * 268 #define LPBSTR BSTR * 270 #define FALSE PR_FALSE 271 #define TRUE PR_TRUE 272 269 273 #define OLECHAR wchar_t 270 274 271 #define FALSE PR_FALSE 272 #define TRUE PR_TRUE 273 274 /** Input pointer argument prefix in the interface method declaration. */ 275 #define INPTR const 275 /* note: typedef to semantically match BSTR on Win32 */ 276 typedef PRUnichar *BSTR; 277 typedef const PRUnichar *CBSTR; 278 typedef BSTR *LPBSTR; 279 280 /** Input BSTR argument the interface method declaration. */ 281 #define IN_BSTR CBSTR 282 283 /** 284 * Type to define a raw GUID variable (for members use the com::Guid class 285 * instead). 286 */ 287 #define GUID nsID 288 /** Input GUID argument the interface method declaration. */ 289 #define IN_GUID const nsID & 290 /** Output GUID argument the interface method declaration. */ 291 #define OUT_GUID nsID ** 276 292 277 293 /** Makes the name of the getter interface function (n must be capitalized). */ … … 279 295 /** Makes the name of the setter interface function (n must be capitalized). */ 280 296 #define COMSETTER(n) Set##n 281 282 /**283 * Type to define a raw GUID variable (for members use the com::Guid class284 * instead).285 */286 #define GUID nsID287 /** Type for an input GUID parameter in the interface method declaration. */288 #define GUIDPARAM nsID &289 /** Type for an output GUID parameter in the interface method declaration. */290 #define GUIDPARAMOUT nsID **291 297 292 298 /* safearray input parameter macros */ -
trunk/include/VBox/com/string.h
r13856 r15051 76 76 77 77 typedef BSTR String; 78 typedef constBSTR ConstString;78 typedef CBSTR ConstString; 79 79 80 80 Bstr () : bstr (NULL) {} 81 81 82 82 Bstr (const Bstr &that) : bstr (NULL) { raw_copy (bstr, that.bstr); } 83 Bstr (const BSTR that) : bstr (NULL) { raw_copy (bstr, that); } 83 Bstr (CBSTR that) : bstr (NULL) { raw_copy (bstr, that); } 84 85 #if defined (VBOX_WITH_XPCOM) 84 86 Bstr (const wchar_t *that) : bstr (NULL) 85 87 { 86 88 AssertCompile (sizeof (wchar_t) == sizeof (OLECHAR)); 87 raw_copy (bstr, (const BSTR) that); 88 } 89 raw_copy (bstr, (CBSTR) that); 90 } 91 #endif 89 92 90 93 Bstr (const Utf8Str &that); … … 97 100 98 101 Bstr &operator = (const Bstr &that) { safe_assign (that.bstr); return *this; } 99 Bstr &operator = ( constBSTR that) { safe_assign (that); return *this; }102 Bstr &operator = (CBSTR that) { safe_assign (that); return *this; } 100 103 101 104 Bstr &operator = (const Utf8Str &that); … … 140 143 } 141 144 142 int compare (const BSTR str) const 145 int compare (CBSTR str) const 146 { 147 return ::RTUtf16Cmp ((PRTUTF16) bstr, (PRTUTF16) str); 148 } 149 150 int compare (BSTR str) const 143 151 { 144 152 return ::RTUtf16Cmp ((PRTUTF16) bstr, (PRTUTF16) str); … … 147 155 bool operator == (const Bstr &that) const { return !compare (that.bstr); } 148 156 bool operator != (const Bstr &that) const { return !!compare (that.bstr); } 149 bool operator == (const BSTR that) const { return !compare (that); } 157 bool operator == (CBSTR that) const { return !compare (that); } 158 bool operator == (BSTR that) const { return !compare (that); } 159 160 #if defined (VBOX_WITH_XPCOM) 150 161 bool operator != (const wchar_t *that) const 151 162 { 152 163 AssertCompile (sizeof (wchar_t) == sizeof (OLECHAR)); 153 return !!compare (( constBSTR) that);164 return !!compare ((CBSTR) that); 154 165 } 155 166 bool operator == (const wchar_t *that) const 156 167 { 157 168 AssertCompile (sizeof (wchar_t) == sizeof (OLECHAR)); 158 return !compare ((const BSTR) that); 159 } 160 bool operator != (const BSTR that) const { return !!compare (that); } 169 return !compare ((CBSTR) that); 170 } 171 #endif 172 173 bool operator != (CBSTR that) const { return !!compare (that); } 174 bool operator != (BSTR that) const { return !!compare (that); } 161 175 bool operator < (const Bstr &that) const { return compare (that.bstr) < 0; } 162 bool operator < (const BSTR that) const { return compare (that) < 0; } 176 bool operator < (CBSTR that) const { return compare (that) < 0; } 177 bool operator < (BSTR that) const { return compare (that) < 0; } 178 #if defined (VBOX_WITH_XPCOM) 163 179 bool operator < (const wchar_t *that) const 164 180 { 165 181 AssertCompile (sizeof (wchar_t) == sizeof (OLECHAR)); 166 return compare ((const BSTR) that) < 0; 167 } 168 169 int compareIgnoreCase (const BSTR str) const 182 return compare ((CBSTR) that) < 0; 183 } 184 #endif 185 186 int compareIgnoreCase (CBSTR str) const 170 187 { 171 188 return ::RTUtf16LocaleICmp (bstr, str); … … 179 196 size_t length() const { return isNull() ? 0 : ::RTUtf16Len ((PRTUTF16) bstr); } 180 197 181 /** Intended to to pass instances as |BSTR| input parameters to methods. */ 182 operator const BSTR () const { return bstr; } 183 184 /** The same as operator const BSTR(), but for situations where the compiler 185 cannot typecast implicitly (for example, in printf() argument list). */ 186 const BSTR raw() const { return bstr; } 198 /** Intended to to pass instances as |CBSTR| input parameters to methods. */ 199 operator CBSTR () const { return bstr; } 200 201 /** 202 * Intended to to pass instances as |BSTR| input parameters to methods. 203 * Note that we have to provide this mutable BSTR operator since in MS COM 204 * input BSTR parameters of interface methods are not const. 205 */ 206 operator BSTR () { return bstr; } 207 208 /** 209 * The same as operator CBSTR(), but for situations where the compiler 210 * cannot typecast implicitly (for example, in printf() argument list). 211 */ 212 CBSTR raw() const { return bstr; } 187 213 188 214 /** … … 245 271 protected: 246 272 247 void safe_assign ( constBSTR str)273 void safe_assign (CBSTR str) 248 274 { 249 275 if (bstr != str) … … 254 280 } 255 281 256 inline static void raw_copy (BSTR &ls, constBSTR rs)282 inline static void raw_copy (BSTR &ls, CBSTR rs) 257 283 { 258 284 if (rs) … … 277 303 278 304 /* symmetric compare operators */ 279 inline bool operator== (const BSTR l, const Bstr &r) { return r.operator== (l); } 280 inline bool operator!= (const BSTR l, const Bstr &r) { return r.operator!= (l); } 305 inline bool operator== (CBSTR l, const Bstr &r) { return r.operator== (l); } 306 inline bool operator!= (CBSTR l, const Bstr &r) { return r.operator!= (l); } 307 inline bool operator== (BSTR l, const Bstr &r) { return r.operator== (l); } 308 inline bool operator!= (BSTR l, const Bstr &r) { return r.operator!= (l); } 281 309 282 310 //////////////////////////////////////////////////////////////////////////////// … … 309 337 310 338 Utf8Str (const Bstr &that) : str (NULL) { raw_copy (str, that); } 311 Utf8Str ( constBSTR that) : str (NULL) { raw_copy (str, that); }339 Utf8Str (CBSTR that) : str (NULL) { raw_copy (str, that); } 312 340 313 341 /** Shortcut that calls #alloc(aSize) right after object creation. */ … … 325 353 return *this; 326 354 } 327 Utf8Str &operator = ( constBSTR that)355 Utf8Str &operator = (CBSTR that) 328 356 { 329 357 setNull(); … … 500 528 } 501 529 502 inline static void raw_copy (char *&ls, constBSTR rs)530 inline static void raw_copy (char *&ls, CBSTR rs) 503 531 { 504 532 if (rs) -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r14831 r15051 237 237 } 238 238 239 STDMETHOD(OnRuntimeError)(BOOL fatal, IN PTR BSTR id, INPTRBSTR message)239 STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR id, IN_BSTR message) 240 240 { 241 241 return S_OK; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r15044 r15051 121 121 } 122 122 123 STDMETHOD(COMGETTER(Id))( GUIDPARAMOUT a_pId){ return E_NOTIMPL; }123 STDMETHOD(COMGETTER(Id))(OUT_GUID a_pId) { return E_NOTIMPL; } 124 124 STDMETHOD(COMGETTER(VendorId))(USHORT *a_pusVendorId) { *a_pusVendorId = m_usVendorId; return S_OK; } 125 125 STDMETHOD(COMGETTER(ProductId))(USHORT *a_pusProductId) { *a_pusProductId = m_usProductId; return S_OK; } … … 5303 5303 { 5304 5304 if (fReset) 5305 CHECK_ERROR(debugger, ResetStats(Bstr(pszPattern) .raw()));5305 CHECK_ERROR(debugger, ResetStats(Bstr(pszPattern))); 5306 5306 else 5307 5307 { 5308 5308 Bstr stats; 5309 CHECK_ERROR(debugger, GetStats(Bstr(pszPattern) .raw(), fWithDescriptions, stats.asOutParam()));5309 CHECK_ERROR(debugger, GetStats(Bstr(pszPattern), fWithDescriptions, stats.asOutParam())); 5310 5310 if (SUCCEEDED(rc)) 5311 5311 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r14732 r15051 94 94 NS_DECL_ISUPPORTS 95 95 96 STDMETHOD(OnMachineStateChange)(IN PTR GUIDPARAMmachineId,96 STDMETHOD(OnMachineStateChange)(IN_GUID machineId, 97 97 MachineState_T state) 98 98 { … … 100 100 } 101 101 102 STDMETHOD(OnMachineDataChange)(IN PTR GUIDPARAMmachineId)103 { 104 return S_OK; 105 } 106 107 STDMETHOD(OnExtraDataCanChange)(IN PTR GUIDPARAM machineId, INPTRBSTR key,108 IN PTRBSTR value, BSTR *error,102 STDMETHOD(OnMachineDataChange)(IN_GUID machineId) 103 { 104 return S_OK; 105 } 106 107 STDMETHOD(OnExtraDataCanChange)(IN_GUID machineId, IN_BSTR key, 108 IN_BSTR value, BSTR *error, 109 109 BOOL *changeAllowed) 110 110 { … … 116 116 } 117 117 118 STDMETHOD(OnExtraDataChange)(IN PTR GUIDPARAM machineId, INPTRBSTR key,119 IN PTRBSTR value)120 { 121 return S_OK; 122 } 123 124 STDMETHOD(OnMediaRegistered) (IN PTR GUIDPARAMmediaId,118 STDMETHOD(OnExtraDataChange)(IN_GUID machineId, IN_BSTR key, 119 IN_BSTR value) 120 { 121 return S_OK; 122 } 123 124 STDMETHOD(OnMediaRegistered) (IN_GUID mediaId, 125 125 DeviceType_T mediaType, BOOL registered) 126 126 { … … 131 131 } 132 132 133 STDMETHOD(OnMachineRegistered)(IN PTR GUIDPARAMmachineId, BOOL registered)134 { 135 return S_OK; 136 } 137 138 STDMETHOD(OnSessionStateChange)(IN PTR GUIDPARAMmachineId,133 STDMETHOD(OnMachineRegistered)(IN_GUID machineId, BOOL registered) 134 { 135 return S_OK; 136 } 137 138 STDMETHOD(OnSessionStateChange)(IN_GUID machineId, 139 139 SessionState_T state) 140 140 { … … 142 142 } 143 143 144 STDMETHOD(OnSnapshotTaken) (IN PTR GUIDPARAMaMachineId,145 IN PTR GUIDPARAMaSnapshotId)146 { 147 return S_OK; 148 } 149 150 STDMETHOD(OnSnapshotDiscarded) (IN PTR GUIDPARAMaMachineId,151 IN PTR GUIDPARAMaSnapshotId)152 { 153 return S_OK; 154 } 155 156 STDMETHOD(OnSnapshotChange) (IN PTR GUIDPARAMaMachineId,157 IN PTR GUIDPARAMaSnapshotId)158 { 159 return S_OK; 160 } 161 162 STDMETHOD(OnGuestPropertyChange)(IN PTR GUIDPARAMmachineId,163 IN PTR BSTR name, INPTRBSTR value,164 IN PTRBSTR flags)144 STDMETHOD(OnSnapshotTaken) (IN_GUID aMachineId, 145 IN_GUID aSnapshotId) 146 { 147 return S_OK; 148 } 149 150 STDMETHOD(OnSnapshotDiscarded) (IN_GUID aMachineId, 151 IN_GUID aSnapshotId) 152 { 153 return S_OK; 154 } 155 156 STDMETHOD(OnSnapshotChange) (IN_GUID aMachineId, 157 IN_GUID aSnapshotId) 158 { 159 return S_OK; 160 } 161 162 STDMETHOD(OnGuestPropertyChange)(IN_GUID machineId, 163 IN_BSTR name, IN_BSTR value, 164 IN_BSTR flags) 165 165 { 166 166 int rc = S_OK; -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r14831 r15051 281 281 NS_DECL_ISUPPORTS 282 282 283 STDMETHOD(OnMachineStateChange)(IN PTR GUIDPARAMmachineId, MachineState_T state)283 STDMETHOD(OnMachineStateChange)(IN_GUID machineId, MachineState_T state) 284 284 { 285 285 return S_OK; 286 286 } 287 287 288 STDMETHOD(OnMachineDataChange)(IN PTR GUIDPARAMmachineId)288 STDMETHOD(OnMachineDataChange)(IN_GUID machineId) 289 289 { 290 290 return S_OK; 291 291 } 292 292 293 STDMETHOD(OnExtraDataCanChange)(IN PTR GUIDPARAM machineId, INPTR BSTR key, INPTRBSTR value,293 STDMETHOD(OnExtraDataCanChange)(IN_GUID machineId, IN_BSTR key, IN_BSTR value, 294 294 BSTR *error, BOOL *changeAllowed) 295 295 { … … 301 301 } 302 302 303 STDMETHOD(OnExtraDataChange)(IN PTR GUIDPARAM machineId, INPTR BSTR key, INPTRBSTR value)303 STDMETHOD(OnExtraDataChange)(IN_GUID machineId, IN_BSTR key, IN_BSTR value) 304 304 { 305 305 #ifdef VBOX_SECURELABEL … … 332 332 } 333 333 334 STDMETHOD(OnMediaRegistered) (IN PTR GUIDPARAMmediaId, DeviceType_T mediaType,334 STDMETHOD(OnMediaRegistered) (IN_GUID mediaId, DeviceType_T mediaType, 335 335 BOOL registered) 336 336 { … … 341 341 } 342 342 343 STDMETHOD(OnMachineRegistered)(IN PTR GUIDPARAMmachineId, BOOL registered)343 STDMETHOD(OnMachineRegistered)(IN_GUID machineId, BOOL registered) 344 344 { 345 345 return S_OK; 346 346 } 347 347 348 STDMETHOD(OnSessionStateChange)(IN PTR GUIDPARAMmachineId, SessionState_T state)348 STDMETHOD(OnSessionStateChange)(IN_GUID machineId, SessionState_T state) 349 349 { 350 350 return S_OK; 351 351 } 352 352 353 STDMETHOD(OnSnapshotTaken) (IN PTR GUIDPARAM aMachineId, INPTR GUIDPARAMaSnapshotId)353 STDMETHOD(OnSnapshotTaken) (IN_GUID aMachineId, IN_GUID aSnapshotId) 354 354 { 355 355 return S_OK; 356 356 } 357 357 358 STDMETHOD(OnSnapshotDiscarded) (IN PTR GUIDPARAM aMachineId, INPTR GUIDPARAMaSnapshotId)358 STDMETHOD(OnSnapshotDiscarded) (IN_GUID aMachineId, IN_GUID aSnapshotId) 359 359 { 360 360 return S_OK; 361 361 } 362 362 363 STDMETHOD(OnSnapshotChange) (IN PTR GUIDPARAM aMachineId, INPTR GUIDPARAMaSnapshotId)363 STDMETHOD(OnSnapshotChange) (IN_GUID aMachineId, IN_GUID aSnapshotId) 364 364 { 365 365 return S_OK; 366 366 } 367 367 368 STDMETHOD(OnGuestPropertyChange)(IN PTR GUIDPARAM machineId, INPTR BSTR key, INPTR BSTR value, INPTRBSTR flags)368 STDMETHOD(OnGuestPropertyChange)(IN_GUID machineId, IN_BSTR key, IN_BSTR value, IN_BSTR flags) 369 369 { 370 370 return S_OK; … … 560 560 } 561 561 562 STDMETHOD(OnRuntimeError)(BOOL fFatal, IN PTR BSTR id, INPTRBSTR message)562 STDMETHOD(OnRuntimeError)(BOOL fFatal, IN_BSTR id, IN_BSTR message) 563 563 { 564 564 MachineState_T machineState; … … 727 727 } 728 728 729 static void PrintError(const char *pszName, const BSTR pwszDescr, constBSTR pwszComponent=NULL)729 static void PrintError(const char *pszName, CBSTR pwszDescr, CBSTR pwszComponent=NULL) 730 730 { 731 731 const char *pszFile, *pszFunc, *pszStat; -
trunk/src/VBox/Frontends/VirtualBox/include/COMDefs.h
r13959 r15051 90 90 * Additional COM / XPCOM defines and includes 91 91 */ 92 93 #define IN_BSTRPARAM INPTR BSTR94 #define IN_GUIDPARAM INPTR GUIDPARAM95 92 96 93 #if !defined (VBOX_WITH_XPCOM) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r14295 r15051 529 529 } 530 530 531 STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR PARAM id, IN_BSTRPARAMmessage)531 STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR id, IN_BSTR message) 532 532 { 533 533 QApplication::postEvent (mView, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r13836 r15051 696 696 // a deadlock. 697 697 698 STDMETHOD(OnMachineStateChange) (IN_GUID PARAMid, MachineState_T state)698 STDMETHOD(OnMachineStateChange) (IN_GUID id, MachineState_T state) 699 699 { 700 700 postEvent (new VBoxMachineStateChangeEvent (COMBase::ToQUuid (id), … … 703 703 } 704 704 705 STDMETHOD(OnMachineDataChange) (IN_GUID PARAMid)705 STDMETHOD(OnMachineDataChange) (IN_GUID id) 706 706 { 707 707 postEvent (new VBoxMachineDataChangeEvent (COMBase::ToQUuid (id))); … … 709 709 } 710 710 711 STDMETHOD(OnExtraDataCanChange)(IN_GUID PARAMid,712 IN_BSTR PARAM key, IN_BSTRPARAMvalue,711 STDMETHOD(OnExtraDataCanChange)(IN_GUID id, 712 IN_BSTR key, IN_BSTR value, 713 713 BSTR *error, BOOL *allowChange) 714 714 { … … 762 762 } 763 763 764 STDMETHOD(OnExtraDataChange) (IN_GUID PARAMid,765 IN_BSTR PARAM key, IN_BSTRPARAMvalue)764 STDMETHOD(OnExtraDataChange) (IN_GUID id, 765 IN_BSTR key, IN_BSTR value) 766 766 { 767 767 if (COMBase::ToQUuid (id).isNull()) … … 796 796 } 797 797 798 STDMETHOD(OnMediaRegistered) (IN_GUID PARAMid, DeviceType_T type,798 STDMETHOD(OnMediaRegistered) (IN_GUID id, DeviceType_T type, 799 799 BOOL registered) 800 800 { … … 806 806 } 807 807 808 STDMETHOD(OnMachineRegistered) (IN_GUID PARAMid, BOOL registered)808 STDMETHOD(OnMachineRegistered) (IN_GUID id, BOOL registered) 809 809 { 810 810 postEvent (new VBoxMachineRegisteredEvent (COMBase::ToQUuid (id), … … 813 813 } 814 814 815 STDMETHOD(OnSessionStateChange) (IN_GUID PARAMid, SessionState_T state)815 STDMETHOD(OnSessionStateChange) (IN_GUID id, SessionState_T state) 816 816 { 817 817 postEvent (new VBoxSessionStateChangeEvent (COMBase::ToQUuid (id), … … 820 820 } 821 821 822 STDMETHOD(OnSnapshotTaken) (IN_GUID PARAM aMachineId, IN_GUIDPARAMaSnapshotId)822 STDMETHOD(OnSnapshotTaken) (IN_GUID aMachineId, IN_GUID aSnapshotId) 823 823 { 824 824 postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId), … … 828 828 } 829 829 830 STDMETHOD(OnSnapshotDiscarded) (IN_GUID PARAM aMachineId, IN_GUIDPARAMaSnapshotId)830 STDMETHOD(OnSnapshotDiscarded) (IN_GUID aMachineId, IN_GUID aSnapshotId) 831 831 { 832 832 postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId), … … 836 836 } 837 837 838 STDMETHOD(OnSnapshotChange) (IN_GUID PARAM aMachineId, IN_GUIDPARAMaSnapshotId)838 STDMETHOD(OnSnapshotChange) (IN_GUID aMachineId, IN_GUID aSnapshotId) 839 839 { 840 840 postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId), … … 844 844 } 845 845 846 STDMETHOD(OnGuestPropertyChange) (IN_GUID PARAM/* id */,847 IN_BSTR PARAM/* key */,848 IN_BSTR PARAM/* value */,849 IN_BSTR PARAM/* flags */)846 STDMETHOD(OnGuestPropertyChange) (IN_GUID /* id */, 847 IN_BSTR /* key */, 848 IN_BSTR /* value */, 849 IN_BSTR /* flags */) 850 850 { 851 851 return S_OK; -
trunk/src/VBox/Frontends/VirtualBox4/include/COMDefs.h
r13956 r15051 90 90 * Additional COM / XPCOM defines and includes 91 91 */ 92 93 #define IN_BSTRPARAM INPTR BSTR94 #define IN_GUIDPARAM INPTR GUIDPARAM95 92 96 93 #if !defined (VBOX_WITH_XPCOM) -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r14977 r15051 532 532 } 533 533 534 STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR PARAM id, IN_BSTRPARAMmessage)534 STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR id, IN_BSTR message) 535 535 { 536 536 QApplication::postEvent (mView, -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r15024 r15051 721 721 // a deadlock. 722 722 723 STDMETHOD(OnMachineStateChange) (IN_GUID PARAMid, MachineState_T state)723 STDMETHOD(OnMachineStateChange) (IN_GUID id, MachineState_T state) 724 724 { 725 725 postEvent (new VBoxMachineStateChangeEvent (COMBase::ToQUuid (id), … … 728 728 } 729 729 730 STDMETHOD(OnMachineDataChange) (IN_GUID PARAMid)730 STDMETHOD(OnMachineDataChange) (IN_GUID id) 731 731 { 732 732 postEvent (new VBoxMachineDataChangeEvent (COMBase::ToQUuid (id))); … … 734 734 } 735 735 736 STDMETHOD(OnExtraDataCanChange)(IN_GUID PARAMid,737 IN_BSTR PARAM key, IN_BSTRPARAMvalue,736 STDMETHOD(OnExtraDataCanChange)(IN_GUID id, 737 IN_BSTR key, IN_BSTR value, 738 738 BSTR *error, BOOL *allowChange) 739 739 { … … 820 820 } 821 821 822 STDMETHOD(OnExtraDataChange) (IN_GUID PARAMid,823 IN_BSTR PARAM key, IN_BSTRPARAMvalue)822 STDMETHOD(OnExtraDataChange) (IN_GUID id, 823 IN_BSTR key, IN_BSTR value) 824 824 { 825 825 if (COMBase::ToQUuid (id).isNull()) … … 899 899 } 900 900 901 STDMETHOD(OnMediaRegistered) (IN_GUID PARAMid, DeviceType_T type,901 STDMETHOD(OnMediaRegistered) (IN_GUID id, DeviceType_T type, 902 902 BOOL registered) 903 903 { … … 909 909 } 910 910 911 STDMETHOD(OnMachineRegistered) (IN_GUID PARAMid, BOOL registered)911 STDMETHOD(OnMachineRegistered) (IN_GUID id, BOOL registered) 912 912 { 913 913 postEvent (new VBoxMachineRegisteredEvent (COMBase::ToQUuid (id), … … 916 916 } 917 917 918 STDMETHOD(OnSessionStateChange) (IN_GUID PARAMid, SessionState_T state)918 STDMETHOD(OnSessionStateChange) (IN_GUID id, SessionState_T state) 919 919 { 920 920 postEvent (new VBoxSessionStateChangeEvent (COMBase::ToQUuid (id), … … 923 923 } 924 924 925 STDMETHOD(OnSnapshotTaken) (IN_GUID PARAM aMachineId, IN_GUIDPARAMaSnapshotId)925 STDMETHOD(OnSnapshotTaken) (IN_GUID aMachineId, IN_GUID aSnapshotId) 926 926 { 927 927 postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId), … … 931 931 } 932 932 933 STDMETHOD(OnSnapshotDiscarded) (IN_GUID PARAM aMachineId, IN_GUIDPARAMaSnapshotId)933 STDMETHOD(OnSnapshotDiscarded) (IN_GUID aMachineId, IN_GUID aSnapshotId) 934 934 { 935 935 postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId), … … 939 939 } 940 940 941 STDMETHOD(OnSnapshotChange) (IN_GUID PARAM aMachineId, IN_GUIDPARAMaSnapshotId)941 STDMETHOD(OnSnapshotChange) (IN_GUID aMachineId, IN_GUID aSnapshotId) 942 942 { 943 943 postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId), … … 947 947 } 948 948 949 STDMETHOD(OnGuestPropertyChange) (IN_GUID PARAM/* id */,950 IN_BSTR PARAM/* key */,951 IN_BSTR PARAM/* value */,952 IN_BSTR PARAM/* flags */)949 STDMETHOD(OnGuestPropertyChange) (IN_GUID /* id */, 950 IN_BSTR /* key */, 951 IN_BSTR /* value */, 952 IN_BSTR /* flags */) 953 953 { 954 954 return S_OK; -
trunk/src/VBox/Main/BIOSSettingsImpl.cpp
r14972 r15051 262 262 } 263 263 264 STDMETHODIMP BIOSSettings::COMSETTER(LogoImagePath)(IN PTRBSTR imagePath)264 STDMETHODIMP BIOSSettings::COMSETTER(LogoImagePath)(IN_BSTR imagePath) 265 265 { 266 266 /* empty strings are not allowed as path names */ -
trunk/src/VBox/Main/ConsoleImpl.cpp
r14972 r15051 1063 1063 } 1064 1064 1065 HRESULT Console::doEnumerateGuestProperties ( INPTRBSTR aPatterns,1065 HRESULT Console::doEnumerateGuestProperties (CBSTR aPatterns, 1066 1066 ComSafeArrayOut(BSTR, aNames), 1067 1067 ComSafeArrayOut(BSTR, aValues), … … 1846 1846 } 1847 1847 1848 STDMETHODIMP Console::AdoptSavedState (IN PTRBSTR aSavedStateFile)1848 STDMETHODIMP Console::AdoptSavedState (IN_BSTR aSavedStateFile) 1849 1849 { 1850 1850 CheckComArgNotNull(aSavedStateFile); … … 1980 1980 } 1981 1981 1982 STDMETHODIMP Console::AttachUSBDevice (IN PTR GUIDPARAMaId)1982 STDMETHODIMP Console::AttachUSBDevice (IN_GUID aId) 1983 1983 { 1984 1984 #ifdef VBOX_WITH_USB … … 2037 2037 } 2038 2038 2039 STDMETHODIMP Console::DetachUSBDevice (IN PTR GUIDPARAMaId, IUSBDevice **aDevice)2039 STDMETHODIMP Console::DetachUSBDevice (IN_GUID aId, IUSBDevice **aDevice) 2040 2040 { 2041 2041 #ifdef VBOX_WITH_USB … … 2098 2098 2099 2099 STDMETHODIMP 2100 Console::CreateSharedFolder (IN PTR BSTR aName, INPTRBSTR aHostPath, BOOL aWritable)2100 Console::CreateSharedFolder (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable) 2101 2101 { 2102 2102 CheckComArgNotNull(aName); … … 2170 2170 } 2171 2171 2172 STDMETHODIMP Console::RemoveSharedFolder (IN PTRBSTR aName)2172 STDMETHODIMP Console::RemoveSharedFolder (IN_BSTR aName) 2173 2173 { 2174 2174 CheckComArgNotNull(aName); … … 2228 2228 } 2229 2229 2230 STDMETHODIMP Console::TakeSnapshot (IN PTR BSTR aName, INPTRBSTR aDescription,2230 STDMETHODIMP Console::TakeSnapshot (IN_BSTR aName, IN_BSTR aDescription, 2231 2231 IProgress **aProgress) 2232 2232 { … … 2401 2401 } 2402 2402 2403 STDMETHODIMP Console::DiscardSnapshot (IN PTR GUIDPARAMaId, IProgress **aProgress)2403 STDMETHODIMP Console::DiscardSnapshot (IN_GUID aId, IProgress **aProgress) 2404 2404 { 2405 2405 CheckComArgExpr(aId, Guid (aId).isEmpty() == false); … … 3498 3498 * @note Locks this object for writing. 3499 3499 */ 3500 HRESULT Console::onUSBDeviceDetach (IN PTR GUIDPARAMaId,3500 HRESULT Console::onUSBDeviceDetach (IN_GUID aId, 3501 3501 IVirtualBoxErrorInfo *aError) 3502 3502 { … … 3579 3579 * @note Temporarily locks this object for writing. 3580 3580 */ 3581 HRESULT Console::getGuestProperty (IN PTRBSTR aName, BSTR *aValue,3581 HRESULT Console::getGuestProperty (IN_BSTR aName, BSTR *aValue, 3582 3582 ULONG64 *aTimestamp, BSTR *aFlags) 3583 3583 { … … 3648 3648 * @note Temporarily locks this object for writing. 3649 3649 */ 3650 HRESULT Console::setGuestProperty (IN PTR BSTR aName, INPTR BSTR aValue, INPTRBSTR aFlags)3650 HRESULT Console::setGuestProperty (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags) 3651 3651 { 3652 3652 #if !defined (VBOX_WITH_GUEST_PROPS) … … 3722 3722 * @note Temporarily locks this object for writing. 3723 3723 */ 3724 HRESULT Console::enumerateGuestProperties (IN PTRBSTR aPatterns,3724 HRESULT Console::enumerateGuestProperties (IN_BSTR aPatterns, 3725 3725 ComSafeArrayOut(BSTR, aNames), 3726 3726 ComSafeArrayOut(BSTR, aValues), … … 3970 3970 * @note Locks this object for reading. 3971 3971 */ 3972 void Console::onRuntimeError (BOOL aFatal, IN PTR BSTR aErrorID, INPTRBSTR aMessage)3972 void Console::onRuntimeError (BOOL aFatal, IN_BSTR aErrorID, IN_BSTR aMessage) 3973 3973 { 3974 3974 AutoCaller autoCaller (this); … … 4935 4935 * @note The caller must lock this object for writing. 4936 4936 */ 4937 HRESULT Console::findSharedFolder ( constBSTR aName,4937 HRESULT Console::findSharedFolder (CBSTR aName, 4938 4938 ComObjPtr <SharedFolder> &aSharedFolder, 4939 4939 bool aSetError /* = false */) … … 5086 5086 * @note The caller must lock this object for reading. 5087 5087 */ 5088 bool Console::findOtherSharedFolder (IN PTRBSTR aName,5088 bool Console::findOtherSharedFolder (IN_BSTR aName, 5089 5089 SharedFolderDataMap::const_iterator &aIt) 5090 5090 { … … 5114 5114 * @note Doesn't lock anything. 5115 5115 */ 5116 HRESULT Console::createSharedFolder ( INPTRBSTR aName, SharedFolderData aData)5116 HRESULT Console::createSharedFolder (CBSTR aName, SharedFolderData aData) 5117 5117 { 5118 5118 ComAssertRet (aName && *aName, E_FAIL); … … 5186 5186 * @note Doesn't lock anything. 5187 5187 */ 5188 HRESULT Console::removeSharedFolder ( INPTRBSTR aName)5188 HRESULT Console::removeSharedFolder (CBSTR aName) 5189 5189 { 5190 5190 ComAssertRet (aName && *aName, E_FAIL); -
trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r14772 r15051 162 162 } 163 163 164 STDMETHOD(OnRuntimeError)(BOOL fatal, IN PTR BSTR id, INPTRBSTR message)164 STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR id, IN_BSTR message) 165 165 { 166 166 return S_OK; -
trunk/src/VBox/Main/DVDDriveImpl.cpp
r14972 r15051 243 243 //////////////////////////////////////////////////////////////////////////////// 244 244 245 STDMETHODIMP DVDDrive::MountImage (IN PTR GUIDPARAMaImageId)245 STDMETHODIMP DVDDrive::MountImage (IN_GUID aImageId) 246 246 { 247 247 Guid imageId = aImageId; -
trunk/src/VBox/Main/FloppyDriveImpl.cpp
r14972 r15051 250 250 ///////////////////////////////////////////////////////////////////////////// 251 251 252 STDMETHODIMP FloppyDrive::MountImage (IN PTR GUIDPARAMaImageId)252 STDMETHODIMP FloppyDrive::MountImage (IN_GUID aImageId) 253 253 { 254 254 Guid imageId = aImageId; -
trunk/src/VBox/Main/GuestImpl.cpp
r14972 r15051 258 258 } 259 259 260 STDMETHODIMP Guest::SetCredentials(IN PTR BSTR aUserName, INPTRBSTR aPassword,261 IN PTRBSTR aDomain, BOOL aAllowInteractiveLogon)260 STDMETHODIMP Guest::SetCredentials(IN_BSTR aUserName, IN_BSTR aPassword, 261 IN_BSTR aDomain, BOOL aAllowInteractiveLogon) 262 262 { 263 263 CheckComArgNotNull(aUserName); -
trunk/src/VBox/Main/HardDisk2Impl.cpp
r15044 r15051 507 507 * @param aLocaiton Storage unit location. 508 508 */ 509 HRESULT HardDisk2::init (VirtualBox *aVirtualBox, constBSTR aFormat,510 constBSTR aLocation)509 HRESULT HardDisk2::init (VirtualBox *aVirtualBox, CBSTR aFormat, 510 CBSTR aLocation) 511 511 { 512 512 AssertReturn (aVirtualBox != NULL, E_FAIL); … … 587 587 * @param aLocaiton Storage unit location. 588 588 */ 589 HRESULT HardDisk2::init (VirtualBox *aVirtualBox, constBSTR aLocation)589 HRESULT HardDisk2::init (VirtualBox *aVirtualBox, CBSTR aLocation) 590 590 { 591 591 AssertReturn (aVirtualBox, E_INVALIDARG); … … 1004 1004 //////////////////////////////////////////////////////////////////////////////// 1005 1005 1006 STDMETHODIMP HardDisk2::GetProperty (IN PTRBSTR aName, BSTR *aValue)1006 STDMETHODIMP HardDisk2::GetProperty (IN_BSTR aName, BSTR *aValue) 1007 1007 { 1008 1008 CheckComArgStrNotEmptyOrNull (aName); … … 1024 1024 } 1025 1025 1026 STDMETHODIMP HardDisk2::SetProperty (IN PTR BSTR aName, INPTRBSTR aValue)1026 STDMETHODIMP HardDisk2::SetProperty (IN_BSTR aName, IN_BSTR aValue) 1027 1027 { 1028 1028 CheckComArgStrNotEmptyOrNull (aName); … … 1055 1055 } 1056 1056 1057 STDMETHODIMP HardDisk2::GetProperties (IN PTRBSTR aNames,1057 STDMETHODIMP HardDisk2::GetProperties (IN_BSTR aNames, 1058 1058 ComSafeArrayOut (BSTR, aReturnNames), 1059 1059 ComSafeArrayOut (BSTR, aReturnValues)) … … 1088 1088 } 1089 1089 1090 STDMETHODIMP HardDisk2::SetProperties (ComSafeArrayIn (IN PTRBSTR, aNames),1091 ComSafeArrayIn (IN PTRBSTR, aValues))1090 STDMETHODIMP HardDisk2::SetProperties (ComSafeArrayIn (IN_BSTR, aNames), 1091 ComSafeArrayIn (IN_BSTR, aValues)) 1092 1092 { 1093 1093 CheckComArgSafeArrayNotNull (aNames); … … 1100 1100 AutoMultiWriteLock2 alock (mVirtualBox, this); 1101 1101 1102 com::SafeArray <IN PTRBSTR> names (ComSafeArrayInArg (aNames));1103 com::SafeArray <IN PTRBSTR> values (ComSafeArrayInArg (aValues));1102 com::SafeArray <IN_BSTR> names (ComSafeArrayInArg (aNames)); 1103 com::SafeArray <IN_BSTR> values (ComSafeArrayInArg (aValues)); 1104 1104 1105 1105 /* first pass: validate names */ … … 1296 1296 } 1297 1297 1298 STDMETHODIMP HardDisk2::MergeTo (IN PTR GUIDPARAMaTargetId, IProgress **aProgress)1298 STDMETHODIMP HardDisk2::MergeTo (IN_GUID aTargetId, IProgress **aProgress) 1299 1299 { 1300 1300 AutoCaller autoCaller (this); … … 2432 2432 * @note Must be called from under this object's write lock. 2433 2433 */ 2434 HRESULT HardDisk2::setLocation ( constBSTR aLocation)2434 HRESULT HardDisk2::setLocation (CBSTR aLocation) 2435 2435 { 2436 2436 /// @todo so far, we assert but later it makes sense to support null … … 2584 2584 * @note Must be called from under this object's write lock. 2585 2585 */ 2586 HRESULT HardDisk2::setFormat ( constBSTR aFormat)2586 HRESULT HardDisk2::setFormat (CBSTR aFormat) 2587 2587 { 2588 2588 /* get the format object first */ -
trunk/src/VBox/Main/HostDVDDriveImpl.cpp
r14972 r15051 50 50 * @return COM result indicator. 51 51 */ 52 HRESULT HostDVDDrive::init (IN PTRBSTR aName,53 IN PTRBSTR aUdi /* = NULL */,54 IN PTRBSTR aDescription /* = NULL */)52 HRESULT HostDVDDrive::init (IN_BSTR aName, 53 IN_BSTR aUdi /* = NULL */, 54 IN_BSTR aDescription /* = NULL */) 55 55 { 56 56 ComAssertRet (aName, E_INVALIDARG); -
trunk/src/VBox/Main/HostFloppyDriveImpl.cpp
r14972 r15051 50 50 * @return COM result indicator. 51 51 */ 52 HRESULT HostFloppyDrive::init (IN PTRBSTR aName,53 IN PTRBSTR aUdi /* = NULL */,54 IN PTRBSTR aDescription /* = NULL */)52 HRESULT HostFloppyDrive::init (IN_BSTR aName, 53 IN_BSTR aUdi /* = NULL */, 54 IN_BSTR aDescription /* = NULL */) 55 55 { 56 56 ComAssertRet (aName, E_INVALIDARG); -
trunk/src/VBox/Main/HostImpl.cpp
r14996 r15051 1352 1352 1353 1353 STDMETHODIMP 1354 Host::CreateHostNetworkInterface (IN PTRBSTR aName,1354 Host::CreateHostNetworkInterface (IN_BSTR aName, 1355 1355 IHostNetworkInterface **aHostNetworkInterface, 1356 1356 IProgress **aProgress) … … 1415 1415 1416 1416 STDMETHODIMP 1417 Host::RemoveHostNetworkInterface (IN PTR GUIDPARAMaId,1417 Host::RemoveHostNetworkInterface (IN_GUID aId, 1418 1418 IHostNetworkInterface **aHostNetworkInterface, 1419 1419 IProgress **aProgress) … … 1476 1476 #endif /* RT_OS_WINDOWS */ 1477 1477 1478 STDMETHODIMP Host::CreateUSBDeviceFilter (IN PTRBSTR aName, IHostUSBDeviceFilter **aFilter)1478 STDMETHODIMP Host::CreateUSBDeviceFilter (IN_BSTR aName, IHostUSBDeviceFilter **aFilter) 1479 1479 { 1480 1480 #ifdef VBOX_WITH_USB -
trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp
r14972 r15051 98 98 * @param aGuid address of result pointer 99 99 */ 100 STDMETHODIMP HostNetworkInterface::COMGETTER(Id) ( GUIDPARAMOUTaGuid)100 STDMETHODIMP HostNetworkInterface::COMGETTER(Id) (OUT_GUID aGuid) 101 101 { 102 102 CheckComArgOutPointerValid(aGuid); -
trunk/src/VBox/Main/MachineDebuggerImpl.cpp
r14972 r15051 688 688 * @param aPattern The selection pattern. A bit similar to filename globbing. 689 689 */ 690 STDMETHODIMP MachineDebugger::ResetStats (IN PTRBSTR aPattern)690 STDMETHODIMP MachineDebugger::ResetStats (IN_BSTR aPattern) 691 691 { 692 692 Console::SafeVMPtrQuiet pVM (mParent); … … 704 704 * @param aPattern The selection pattern. A bit similar to filename globbing. 705 705 */ 706 STDMETHODIMP MachineDebugger::DumpStats (IN PTRBSTR aPattern)706 STDMETHODIMP MachineDebugger::DumpStats (IN_BSTR aPattern) 707 707 { 708 708 Console::SafeVMPtrQuiet pVM (mParent); … … 722 722 * @param aStats The XML document containing the statistics. 723 723 */ 724 STDMETHODIMP MachineDebugger::GetStats (IN PTRBSTR aPattern, BOOL aWithDescriptions, BSTR *aStats)724 STDMETHODIMP MachineDebugger::GetStats (IN_BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats) 725 725 { 726 726 Console::SafeVMPtrQuiet pVM (mParent); -
trunk/src/VBox/Main/MachineImpl.cpp
r15050 r15051 380 380 * @return Success indicator. if not S_OK, the machine object is invalid 381 381 */ 382 HRESULT Machine::init (VirtualBox *aParent, constBSTR aConfigFile,383 InitMode aMode, constBSTR aName /* = NULL */,382 HRESULT Machine::init (VirtualBox *aParent, CBSTR aConfigFile, 383 InitMode aMode, CBSTR aName /* = NULL */, 384 384 GuestOSType *aOsType /* = NULL */, 385 385 BOOL aNameSync /* = TRUE */, … … 811 811 } 812 812 813 STDMETHODIMP Machine::COMSETTER(Name) (IN PTRBSTR aName)813 STDMETHODIMP Machine::COMSETTER(Name) (IN_BSTR aName) 814 814 { 815 815 CheckComArgNotNull(aName); … … 847 847 } 848 848 849 STDMETHODIMP Machine::COMSETTER(Description) (IN PTRBSTR aDescription)849 STDMETHODIMP Machine::COMSETTER(Description) (IN_BSTR aDescription) 850 850 { 851 851 AutoCaller autoCaller (this); … … 863 863 } 864 864 865 STDMETHODIMP Machine::COMGETTER(Id) ( GUIDPARAMOUTaId)865 STDMETHODIMP Machine::COMGETTER(Id) (OUT_GUID aId) 866 866 { 867 867 CheckComArgOutPointerValid(aId); … … 891 891 } 892 892 893 STDMETHODIMP Machine::COMSETTER(OSTypeId) (IN PTRBSTR aOSTypeId)893 STDMETHODIMP Machine::COMSETTER(OSTypeId) (IN_BSTR aOSTypeId) 894 894 { 895 895 CheckComArgNotNull(aOSTypeId); … … 1333 1333 } 1334 1334 1335 STDMETHODIMP Machine::COMSETTER(SnapshotFolder) (IN PTRBSTR aSnapshotFolder)1335 STDMETHODIMP Machine::COMSETTER(SnapshotFolder) (IN_BSTR aSnapshotFolder) 1336 1336 { 1337 1337 /* @todo (r=dmik): … … 1779 1779 1780 1780 STDMETHODIMP 1781 Machine::COMSETTER(GuestPropertyNotificationPatterns) (IN PTRBSTR aPatterns)1781 Machine::COMSETTER(GuestPropertyNotificationPatterns) (IN_BSTR aPatterns) 1782 1782 { 1783 1783 AssertLogRelReturn (VALID_PTR(aPatterns), E_POINTER); … … 1842 1842 } 1843 1843 1844 STDMETHODIMP Machine::AttachHardDisk2 (IN PTR GUIDPARAMaId,1844 STDMETHODIMP Machine::AttachHardDisk2 (IN_GUID aId, 1845 1845 StorageBus_T aBus, LONG aChannel, 1846 1846 LONG aDevice) … … 2336 2336 * @note Locks this object for reading. 2337 2337 */ 2338 STDMETHODIMP Machine::GetNextExtraDataKey (IN PTRBSTR aKey, BSTR *aNextKey, BSTR *aNextValue)2338 STDMETHODIMP Machine::GetNextExtraDataKey (IN_BSTR aKey, BSTR *aNextKey, BSTR *aNextValue) 2339 2339 { 2340 2340 CheckComArgOutPointerValid(aNextKey); … … 2439 2439 * @note Locks this object for reading. 2440 2440 */ 2441 STDMETHODIMP Machine::GetExtraData (IN PTRBSTR aKey, BSTR *aValue)2441 STDMETHODIMP Machine::GetExtraData (IN_BSTR aKey, BSTR *aValue) 2442 2442 { 2443 2443 CheckComArgNotNull(aKey); … … 2505 2505 * @note Locks mParent for writing + this object for writing. 2506 2506 */ 2507 STDMETHODIMP Machine::SetExtraData (IN PTR BSTR aKey, INPTRBSTR aValue)2507 STDMETHODIMP Machine::SetExtraData (IN_BSTR aKey, IN_BSTR aValue) 2508 2508 { 2509 2509 CheckComArgNotNull(aKey); … … 2576 2576 { 2577 2577 const char *sep = error.isEmpty() ? "" : ": "; 2578 const BSTR err = error.isNull() ? (constBSTR) L"" : error.raw();2578 CBSTR err = error.isNull() ? (CBSTR) L"" : error.raw(); 2579 2579 LogWarningFunc (("Someone vetoed! Change refused%s%ls\n", 2580 2580 sep, err)); … … 2773 2773 } 2774 2774 2775 STDMETHODIMP Machine::GetSnapshot (IN PTR GUIDPARAMaId, ISnapshot **aSnapshot)2775 STDMETHODIMP Machine::GetSnapshot (IN_GUID aId, ISnapshot **aSnapshot) 2776 2776 { 2777 2777 CheckComArgOutPointerValid(aSnapshot); … … 2791 2791 } 2792 2792 2793 STDMETHODIMP Machine::FindSnapshot (IN PTRBSTR aName, ISnapshot **aSnapshot)2793 STDMETHODIMP Machine::FindSnapshot (IN_BSTR aName, ISnapshot **aSnapshot) 2794 2794 { 2795 2795 CheckComArgNotNull(aName); … … 2809 2809 } 2810 2810 2811 STDMETHODIMP Machine::SetCurrentSnapshot (IN PTR GUIDPARAMaId)2811 STDMETHODIMP Machine::SetCurrentSnapshot (IN_GUID aId) 2812 2812 { 2813 2813 /// @todo (dmik) don't forget to set … … 2818 2818 2819 2819 STDMETHODIMP 2820 Machine::CreateSharedFolder (IN PTR BSTR aName, INPTRBSTR aHostPath, BOOL aWritable)2820 Machine::CreateSharedFolder (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable) 2821 2821 { 2822 2822 CheckComArgNotNull(aName); … … 2859 2859 } 2860 2860 2861 STDMETHODIMP Machine::RemoveSharedFolder (IN PTRBSTR aName)2861 STDMETHODIMP Machine::RemoveSharedFolder (IN_BSTR aName) 2862 2862 { 2863 2863 CheckComArgNotNull(aName); … … 2942 2942 } 2943 2943 2944 STDMETHODIMP Machine::GetGuestProperty (IN PTRBSTR aName, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags)2944 STDMETHODIMP Machine::GetGuestProperty (IN_BSTR aName, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags) 2945 2945 { 2946 2946 #if !defined (VBOX_WITH_GUEST_PROPS) … … 2998 2998 } 2999 2999 3000 STDMETHODIMP Machine::GetGuestPropertyValue (IN PTRBSTR aName, BSTR *aValue)3000 STDMETHODIMP Machine::GetGuestPropertyValue (IN_BSTR aName, BSTR *aValue) 3001 3001 { 3002 3002 ULONG64 dummyTimestamp; … … 3005 3005 } 3006 3006 3007 STDMETHODIMP Machine::GetGuestPropertyTimestamp (IN PTRBSTR aName, ULONG64 *aTimestamp)3007 STDMETHODIMP Machine::GetGuestPropertyTimestamp (IN_BSTR aName, ULONG64 *aTimestamp) 3008 3008 { 3009 3009 BSTR dummyValue; … … 3012 3012 } 3013 3013 3014 STDMETHODIMP Machine::SetGuestProperty (IN PTR BSTR aName, INPTR BSTR aValue, INPTRBSTR aFlags)3014 STDMETHODIMP Machine::SetGuestProperty (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags) 3015 3015 { 3016 3016 #if !defined (VBOX_WITH_GUEST_PROPS) … … 3131 3131 } 3132 3132 3133 STDMETHODIMP Machine::SetGuestPropertyValue (IN PTR BSTR aName, INPTRBSTR aValue)3133 STDMETHODIMP Machine::SetGuestPropertyValue (IN_BSTR aName, IN_BSTR aValue) 3134 3134 { 3135 3135 return SetGuestProperty(aName, aValue, NULL); 3136 3136 } 3137 3137 3138 STDMETHODIMP Machine::EnumerateGuestProperties (IN PTRBSTR aPatterns, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags))3138 STDMETHODIMP Machine::EnumerateGuestProperties (IN_BSTR aPatterns, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags)) 3139 3139 { 3140 3140 #if !defined (VBOX_WITH_GUEST_PROPS) … … 3551 3551 */ 3552 3552 HRESULT Machine::openRemoteSession (IInternalSessionControl *aControl, 3553 IN PTR BSTR aType, INPTRBSTR aEnvironment,3553 IN_BSTR aType, IN_BSTR aEnvironment, 3554 3554 Progress *aProgress) 3555 3555 { … … 4626 4626 * must be called from under the object's lock! 4627 4627 */ 4628 HRESULT Machine::findSharedFolder ( constBSTR aName,4628 HRESULT Machine::findSharedFolder (CBSTR aName, 4629 4629 ComObjPtr <SharedFolder> &aSharedFolder, 4630 4630 bool aSetError /* = false */) … … 5510 5510 * @param aSetError true to set extended error info on failure 5511 5511 */ 5512 HRESULT Machine::findSnapshot ( constBSTR aName, ComObjPtr <Snapshot> &aSnapshot,5512 HRESULT Machine::findSnapshot (IN_BSTR aName, ComObjPtr <Snapshot> &aSnapshot, 5513 5513 bool aSetError /* = false */) 5514 5514 { … … 8098 8098 * @note Locks the same as Host::captureUSBDevice() does. 8099 8099 */ 8100 STDMETHODIMP SessionMachine::CaptureUSBDevice (IN PTR GUIDPARAMaId)8100 STDMETHODIMP SessionMachine::CaptureUSBDevice (IN_GUID aId) 8101 8101 { 8102 8102 LogFlowThisFunc (("\n")); … … 8121 8121 * @note Locks the same as Host::detachUSBDevice() does. 8122 8122 */ 8123 STDMETHODIMP SessionMachine::DetachUSBDevice (IN PTR GUIDPARAMaId, BOOL aDone)8123 STDMETHODIMP SessionMachine::DetachUSBDevice (IN_GUID aId, BOOL aDone) 8124 8124 { 8125 8125 LogFlowThisFunc (("\n")); … … 8355 8355 * @note Locks this object for writing. 8356 8356 */ 8357 STDMETHODIMP SessionMachine::AdoptSavedState (IN PTRBSTR aSavedStateFile)8357 STDMETHODIMP SessionMachine::AdoptSavedState (IN_BSTR aSavedStateFile) 8358 8358 { 8359 8359 LogFlowThisFunc (("\n")); … … 8389 8389 */ 8390 8390 STDMETHODIMP SessionMachine::BeginTakingSnapshot ( 8391 IConsole *aInitiator, IN PTR BSTR aName, INPTRBSTR aDescription,8391 IConsole *aInitiator, IN_BSTR aName, IN_BSTR aDescription, 8392 8392 IProgress *aProgress, BSTR *aStateFilePath, 8393 8393 IProgress **aServerProgress) … … 8577 8577 */ 8578 8578 STDMETHODIMP SessionMachine::DiscardSnapshot ( 8579 IConsole *aInitiator, IN PTR GUIDPARAMaId,8579 IConsole *aInitiator, IN_GUID aId, 8580 8580 MachineState_T *aMachineState, IProgress **aProgress) 8581 8581 { … … 8855 8855 } 8856 8856 8857 STDMETHODIMP SessionMachine::PushGuestProperties (ComSafeArrayIn(IN PTRBSTR, aNames),8858 ComSafeArrayIn(IN PTRBSTR, aValues),8857 STDMETHODIMP SessionMachine::PushGuestProperties (ComSafeArrayIn(IN_BSTR, aNames), 8858 ComSafeArrayIn(IN_BSTR, aValues), 8859 8859 ComSafeArrayIn(ULONG64, aTimestamps), 8860 ComSafeArrayIn(IN PTRBSTR, aFlags))8860 ComSafeArrayIn(IN_BSTR, aFlags)) 8861 8861 { 8862 8862 LogFlowThisFunc (("\n")); … … 8887 8887 AssertReturn(!ComSafeArrayInIsNull (aFlags), E_POINTER); 8888 8888 8889 com::SafeArray <IN PTRBSTR> names(ComSafeArrayInArg(aNames));8890 com::SafeArray <IN PTRBSTR> values(ComSafeArrayInArg(aValues));8889 com::SafeArray <IN_BSTR> names(ComSafeArrayInArg(aNames)); 8890 com::SafeArray <IN_BSTR> values(ComSafeArrayInArg(aValues)); 8891 8891 com::SafeArray <ULONG64> timestamps(ComSafeArrayInArg(aTimestamps)); 8892 com::SafeArray <IN PTRBSTR> flags(ComSafeArrayInArg(aFlags));8892 com::SafeArray <IN_BSTR> flags(ComSafeArrayInArg(aFlags)); 8893 8893 DiscardSettings(); 8894 8894 mHWData.backup(); … … 8913 8913 } 8914 8914 8915 STDMETHODIMP SessionMachine::PushGuestProperty (IN PTR BSTR aName, INPTRBSTR aValue,8916 ULONG64 aTimestamp, IN PTRBSTR aFlags)8915 STDMETHODIMP SessionMachine::PushGuestProperty (IN_BSTR aName, IN_BSTR aValue, 8916 ULONG64 aTimestamp, IN_BSTR aFlags) 8917 8917 { 8918 8918 LogFlowThisFunc (("\n")); … … 9317 9317 * @note The calls shall hold no locks. Will temporarily lock this object for reading. 9318 9318 */ 9319 HRESULT SessionMachine::onUSBDeviceDetach (IN PTR GUIDPARAMaId,9319 HRESULT SessionMachine::onUSBDeviceDetach (IN_GUID aId, 9320 9320 IVirtualBoxErrorInfo *aError) 9321 9321 { … … 10507 10507 */ 10508 10508 HRESULT SnapshotMachine::init (SessionMachine *aSessionMachine, 10509 IN PTR GUIDPARAMaSnapshotId,10510 IN PTRBSTR aStateFilePath)10509 IN_GUID aSnapshotId, 10510 IN_BSTR aStateFilePath) 10511 10511 { 10512 10512 LogFlowThisFuncEnter(); … … 10634 10634 const settings::Key &aHWNode, 10635 10635 const settings::Key &aHDAsNode, 10636 IN PTR GUIDPARAM aSnapshotId, INPTRBSTR aStateFilePath)10636 IN_GUID aSnapshotId, IN_BSTR aStateFilePath) 10637 10637 { 10638 10638 LogFlowThisFuncEnter(); -
trunk/src/VBox/Main/MediumImpl.cpp
r14972 r15051 51 51 //////////////////////////////////////////////////////////////////////////////// 52 52 53 STDMETHODIMP MediumBase::COMGETTER(Id) ( GUIDPARAMOUTaId)53 STDMETHODIMP MediumBase::COMGETTER(Id) (OUT_GUID aId) 54 54 { 55 55 CheckComArgOutPointerValid(aId); … … 79 79 } 80 80 81 STDMETHODIMP MediumBase::COMSETTER(Description) (IN PTRBSTR aDescription)81 STDMETHODIMP MediumBase::COMSETTER(Description) (IN_BSTR aDescription) 82 82 { 83 83 CheckComArgNotNull(aDescription); … … 140 140 } 141 141 142 STDMETHODIMP MediumBase::COMSETTER(Location) (IN PTRBSTR aLocation)142 STDMETHODIMP MediumBase::COMSETTER(Location) (IN_BSTR aLocation) 143 143 { 144 144 CheckComArgNotNull(aLocation); … … 235 235 //////////////////////////////////////////////////////////////////////////////// 236 236 237 STDMETHODIMP MediumBase::GetSnapshotIds (IN PTR GUIDPARAMaMachineId,237 STDMETHODIMP MediumBase::GetSnapshotIds (IN_GUID aMachineId, 238 238 ComSafeGUIDArrayOut (aSnapshotIds)) 239 239 { … … 694 694 * @note Must be called from under this object's write lock. 695 695 */ 696 HRESULT MediumBase::setLocation ( constBSTR aLocation)696 HRESULT MediumBase::setLocation (CBSTR aLocation) 697 697 { 698 698 /* get the full file name */ … … 931 931 * @param aId UUID of the image. 932 932 */ 933 HRESULT ImageMediumBase::protectedInit (VirtualBox *aVirtualBox, constBSTR aLocation,933 HRESULT ImageMediumBase::protectedInit (VirtualBox *aVirtualBox, CBSTR aLocation, 934 934 const Guid &aId) 935 935 { -
trunk/src/VBox/Main/NetworkAdapterImpl.cpp
r14972 r15051 299 299 } 300 300 301 STDMETHODIMP NetworkAdapter::COMSETTER(MACAddress)(IN PTRBSTR aMACAddress)301 STDMETHODIMP NetworkAdapter::COMSETTER(MACAddress)(IN_BSTR aMACAddress) 302 302 { 303 303 AutoCaller autoCaller (this); … … 408 408 } 409 409 410 STDMETHODIMP NetworkAdapter::COMSETTER(HostInterface)(IN PTRBSTR aHostInterface)410 STDMETHODIMP NetworkAdapter::COMSETTER(HostInterface)(IN_BSTR aHostInterface) 411 411 { 412 412 /** @todo Validate input string length. r=dmik: do it in XML schema?*/ … … 526 526 527 527 STDMETHODIMP NetworkAdapter::COMSETTER(TAPSetupApplication) ( 528 IN PTRBSTR aTAPSetupApplication)528 IN_BSTR aTAPSetupApplication) 529 529 { 530 530 # ifdef VBOX_WITH_UNIXY_TAP_NETWORKING … … 580 580 581 581 STDMETHODIMP NetworkAdapter::COMSETTER(TAPTerminateApplication) ( 582 IN PTRBSTR aTAPTerminateApplication)582 IN_BSTR aTAPTerminateApplication) 583 583 { 584 584 # ifdef VBOX_WITH_UNIXY_TAP_NETWORKING … … 629 629 } 630 630 631 STDMETHODIMP NetworkAdapter::COMSETTER(InternalNetwork) (IN PTRBSTR aInternalNetwork)631 STDMETHODIMP NetworkAdapter::COMSETTER(InternalNetwork) (IN_BSTR aInternalNetwork) 632 632 { 633 633 AutoCaller autoCaller (this); … … 677 677 } 678 678 679 STDMETHODIMP NetworkAdapter::COMSETTER(NATNetwork) (IN PTRBSTR aNATNetwork)679 STDMETHODIMP NetworkAdapter::COMSETTER(NATNetwork) (IN_BSTR aNATNetwork) 680 680 { 681 681 AutoCaller autoCaller (this); … … 832 832 } 833 833 834 STDMETHODIMP NetworkAdapter::COMSETTER(TraceFile) (IN PTRBSTR aTraceFile)834 STDMETHODIMP NetworkAdapter::COMSETTER(TraceFile) (IN_BSTR aTraceFile) 835 835 { 836 836 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/ParallelPortImpl.cpp
r14972 r15051 508 508 * Validates COMSETTER(Path) arguments. 509 509 */ 510 HRESULT ParallelPort::checkSetPath ( constBSTR aPath)510 HRESULT ParallelPort::checkSetPath (CBSTR aPath) 511 511 { 512 512 AssertReturn (isWriteLockOnCurrentThread(), E_FAIL); … … 522 522 } 523 523 524 STDMETHODIMP ParallelPort::COMSETTER(Path) (IN PTRBSTR aPath)524 STDMETHODIMP ParallelPort::COMSETTER(Path) (IN_BSTR aPath) 525 525 { 526 526 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/Performance.cpp
r14950 r15051 418 418 } 419 419 420 Filter::Filter(ComSafeArrayIn(IN PTRBSTR, metricNames),420 Filter::Filter(ComSafeArrayIn(IN_BSTR, metricNames), 421 421 ComSafeArrayIn(IUnknown *, objects)) 422 422 { … … 449 449 else 450 450 { 451 com::SafeArray <IN PTRBSTR> nameArray(ComSafeArrayInArg(metricNames));451 com::SafeArray <IN_BSTR> nameArray(ComSafeArrayInArg(metricNames)); 452 452 if (ComSafeArrayInIsNull(objects)) 453 453 { … … 466 466 } 467 467 468 void Filter::init(ComSafeArrayIn(IN PTRBSTR, metricNames),468 void Filter::init(ComSafeArrayIn(IN_BSTR, metricNames), 469 469 ComSafeArrayIn(IUnknown *, objects)) 470 470 { 471 com::SafeArray <IN PTRBSTR> nameArray(ComSafeArrayInArg(metricNames));471 com::SafeArray <IN_BSTR> nameArray(ComSafeArrayInArg(metricNames)); 472 472 com::SafeIfaceArray <IUnknown> objectArray(ComSafeArrayInArg(objects)); 473 473 -
trunk/src/VBox/Main/PerformanceImpl.cpp
r14772 r15051 215 215 216 216 STDMETHODIMP 217 PerformanceCollector::GetMetrics (ComSafeArrayIn (IN PTRBSTR, metricNames),217 PerformanceCollector::GetMetrics (ComSafeArrayIn (IN_BSTR, metricNames), 218 218 ComSafeArrayIn (IUnknown *, objects), 219 219 ComSafeArrayOut (IPerformanceMetric *, outMetrics)) … … 257 257 258 258 STDMETHODIMP 259 PerformanceCollector::SetupMetrics (ComSafeArrayIn (IN PTRBSTR, metricNames),259 PerformanceCollector::SetupMetrics (ComSafeArrayIn (IN_BSTR, metricNames), 260 260 ComSafeArrayIn (IUnknown *, objects), 261 261 ULONG aPeriod, ULONG aCount, … … 307 307 308 308 STDMETHODIMP 309 PerformanceCollector::EnableMetrics (ComSafeArrayIn (IN PTRBSTR, metricNames),309 PerformanceCollector::EnableMetrics (ComSafeArrayIn (IN_BSTR, metricNames), 310 310 ComSafeArrayIn (IUnknown *, objects), 311 311 ComSafeArrayOut (IPerformanceMetric *, … … 344 344 345 345 STDMETHODIMP 346 PerformanceCollector::DisableMetrics (ComSafeArrayIn (IN PTRBSTR, metricNames),346 PerformanceCollector::DisableMetrics (ComSafeArrayIn (IN_BSTR, metricNames), 347 347 ComSafeArrayIn (IUnknown *, objects), 348 348 ComSafeArrayOut (IPerformanceMetric *, … … 381 381 382 382 STDMETHODIMP 383 PerformanceCollector::QueryMetricsData (ComSafeArrayIn (IN PTRBSTR, metricNames),383 PerformanceCollector::QueryMetricsData (ComSafeArrayIn (IN_BSTR, metricNames), 384 384 ComSafeArrayIn (IUnknown *, objects), 385 385 ComSafeArrayOut (BSTR, outMetricNames), -
trunk/src/VBox/Main/ProgressImpl.cpp
r14972 r15051 90 90 #endif 91 91 IUnknown *aInitiator, 92 const BSTR aDescription, GUIDPARAMOUTaId /* = NULL */)92 CBSTR aDescription, OUT_GUID aId /* = NULL */) 93 93 { 94 94 /* Guarantees subclasses call this method at the proper time */ … … 193 193 ///////////////////////////////////////////////////////////////////////////// 194 194 195 STDMETHODIMP ProgressBase::COMGETTER(Id) ( GUIDPARAMOUTaId)195 STDMETHODIMP ProgressBase::COMGETTER(Id) (OUT_GUID aId) 196 196 { 197 197 CheckComArgOutPointerValid(aId); … … 480 480 #endif 481 481 IUnknown *aInitiator, 482 constBSTR aDescription, BOOL aCancelable,483 ULONG aOperationCount, constBSTR aOperationDescription,484 GUIDPARAMOUTaId /* = NULL */)482 CBSTR aDescription, BOOL aCancelable, 483 ULONG aOperationCount, CBSTR aOperationDescription, 484 OUT_GUID aId /* = NULL */) 485 485 { 486 486 LogFlowThisFunc (("aDescription=\"%ls\"\n", aDescription)); … … 536 536 */ 537 537 HRESULT Progress::init (BOOL aCancelable, ULONG aOperationCount, 538 constBSTR aOperationDescription)538 CBSTR aOperationDescription) 539 539 { 540 540 LogFlowThisFunc (("aOperationDescription=\"%ls\"\n", aOperationDescription)); … … 781 781 * @note The current operation must not be the last one. 782 782 */ 783 HRESULT Progress::advanceOperation ( constBSTR aOperationDescription)783 HRESULT Progress::advanceOperation (CBSTR aOperationDescription) 784 784 { 785 785 AssertReturn (aOperationDescription, E_INVALIDARG); … … 1005 1005 #endif 1006 1006 IUnknown *aInitiator, 1007 const BSTR aDescription, GUIDPARAMOUTaId)1007 CBSTR aDescription, OUT_GUID aId) 1008 1008 { 1009 1009 LogFlowThisFunc (("aDescription={%ls} mProgresses.size()=%d\n", … … 1076 1076 #endif 1077 1077 IUnknown *aInitiator, 1078 constBSTR aDescription,1078 CBSTR aDescription, 1079 1079 IProgress *aProgress1, IProgress *aProgress2, 1080 GUIDPARAMOUTaId /* = NULL */)1080 OUT_GUID aId /* = NULL */) 1081 1081 { 1082 1082 /* Enclose the state transition NotReady->InInit->Ready */ -
trunk/src/VBox/Main/RemoteUSBDeviceImpl.cpp
r14972 r15051 132 132 ///////////////////////////////////////////////////////////////////////////// 133 133 134 STDMETHODIMP RemoteUSBDevice::COMGETTER(Id) ( GUIDPARAMOUTaId)134 STDMETHODIMP RemoteUSBDevice::COMGETTER(Id) (OUT_GUID aId) 135 135 { 136 136 CheckComArgOutPointerValid(aId); -
trunk/src/VBox/Main/SerialPortImpl.cpp
r14972 r15051 604 604 * Validates COMSETTER(Path) arguments. 605 605 */ 606 HRESULT SerialPort::checkSetPath ( constBSTR aPath)606 HRESULT SerialPort::checkSetPath (CBSTR aPath) 607 607 { 608 608 AssertReturn (isWriteLockOnCurrentThread(), E_FAIL); … … 619 619 } 620 620 621 STDMETHODIMP SerialPort::COMSETTER(Path) (IN PTRBSTR aPath)621 STDMETHODIMP SerialPort::COMSETTER(Path) (IN_BSTR aPath) 622 622 { 623 623 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/SessionImpl.cpp
r14972 r15051 629 629 } 630 630 631 STDMETHODIMP Session::OnUSBDeviceDetach (IN PTR GUIDPARAMaId,631 STDMETHODIMP Session::OnUSBDeviceDetach (IN_GUID aId, 632 632 IVirtualBoxErrorInfo *aError) 633 633 { … … 667 667 } 668 668 669 STDMETHODIMP Session::AccessGuestProperty (IN PTR BSTR aName, INPTR BSTR aValue, INPTRBSTR aFlags,669 STDMETHODIMP Session::AccessGuestProperty (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags, 670 670 BOOL aIsSetter, BSTR *aRetValue, ULONG64 *aRetTimestamp, BSTR *aRetFlags) 671 671 { … … 701 701 } 702 702 703 STDMETHODIMP Session::EnumerateGuestProperties (IN PTRBSTR aPatterns,703 STDMETHODIMP Session::EnumerateGuestProperties (IN_BSTR aPatterns, 704 704 ComSafeArrayOut(BSTR, aNames), 705 705 ComSafeArrayOut(BSTR, aValues), -
trunk/src/VBox/Main/SharedFolderImpl.cpp
r14972 r15051 67 67 */ 68 68 HRESULT SharedFolder::init (Machine *aMachine, 69 const BSTR aName, constBSTR aHostPath, BOOL aWritable)69 CBSTR aName, CBSTR aHostPath, BOOL aWritable) 70 70 { 71 71 /* Enclose the state transition NotReady->InInit->Ready */ … … 125 125 */ 126 126 HRESULT SharedFolder::init (Console *aConsole, 127 const BSTR aName, constBSTR aHostPath, BOOL aWritable)127 CBSTR aName, CBSTR aHostPath, BOOL aWritable) 128 128 { 129 129 /* Enclose the state transition NotReady->InInit->Ready */ … … 153 153 */ 154 154 HRESULT SharedFolder::init (VirtualBox *aVirtualBox, 155 const BSTR aName, constBSTR aHostPath, BOOL aWritable)155 CBSTR aName, CBSTR aHostPath, BOOL aWritable) 156 156 { 157 157 /* Enclose the state transition NotReady->InInit->Ready */ … … 177 177 */ 178 178 HRESULT SharedFolder::protectedInit (VirtualBoxBaseWithChildrenNEXT *aParent, 179 const BSTR aName, constBSTR aHostPath, BOOL aWritable)179 CBSTR aName, CBSTR aHostPath, BOOL aWritable) 180 180 { 181 181 LogFlowThisFunc (("aName={%ls}, aHostPath={%ls}, aWritable={%d}\n", -
trunk/src/VBox/Main/SnapshotImpl.cpp
r14972 r15051 65 65 * @param aParent parent snapshot (NULL if no parent) 66 66 */ 67 HRESULT Snapshot::init (const Guid &aId, IN PTR BSTR aName, INPTRBSTR aDescription,67 HRESULT Snapshot::init (const Guid &aId, IN_BSTR aName, IN_BSTR aDescription, 68 68 RTTIMESPEC aTimeStamp, SnapshotMachine *aMachine, 69 69 Snapshot *aParent) … … 165 165 //////////////////////////////////////////////////////////////////////////////// 166 166 167 STDMETHODIMP Snapshot::COMGETTER(Id) ( GUIDPARAMOUTaId)167 STDMETHODIMP Snapshot::COMGETTER(Id) (OUT_GUID aId) 168 168 { 169 169 CheckComArgOutPointerValid(aId); … … 191 191 * (see its lock requirements). 192 192 */ 193 STDMETHODIMP Snapshot::COMSETTER(Name) (IN PTRBSTR aName)193 STDMETHODIMP Snapshot::COMSETTER(Name) (IN_BSTR aName) 194 194 { 195 195 CheckComArgNotNull(aName); … … 221 221 } 222 222 223 STDMETHODIMP Snapshot::COMSETTER(Description) (IN PTRBSTR aDescription)223 STDMETHODIMP Snapshot::COMSETTER(Description) (IN_BSTR aDescription) 224 224 { 225 225 CheckComArgNotNull(aDescription); … … 339 339 * etc. of this snapshot. This snapshot itself is also included in the search. 340 340 */ 341 ComObjPtr <Snapshot> Snapshot::findChildOrSelf (IN PTR GUIDPARAMaId)341 ComObjPtr <Snapshot> Snapshot::findChildOrSelf (IN_GUID aId) 342 342 { 343 343 ComObjPtr <Snapshot> child; … … 366 366 * in the search. 367 367 */ 368 ComObjPtr <Snapshot> Snapshot::findChildOrSelf (IN PTRBSTR aName)368 ComObjPtr <Snapshot> Snapshot::findChildOrSelf (IN_BSTR aName) 369 369 { 370 370 ComObjPtr <Snapshot> child; -
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r14972 r15051 300 300 } 301 301 302 STDMETHODIMP SystemProperties::COMSETTER(DefaultMachineFolder) (IN PTRBSTR aDefaultMachineFolder)302 STDMETHODIMP SystemProperties::COMSETTER(DefaultMachineFolder) (IN_BSTR aDefaultMachineFolder) 303 303 { 304 304 AutoCaller autoCaller (this); … … 329 329 } 330 330 331 STDMETHODIMP SystemProperties::COMSETTER(DefaultHardDiskFolder) (IN PTRBSTR aDefaultHardDiskFolder)331 STDMETHODIMP SystemProperties::COMSETTER(DefaultHardDiskFolder) (IN_BSTR aDefaultHardDiskFolder) 332 332 { 333 333 AutoCaller autoCaller (this); … … 375 375 } 376 376 377 STDMETHODIMP SystemProperties::COMSETTER(DefaultHardDiskFormat) (IN PTRBSTR aDefaultHardDiskFormat)377 STDMETHODIMP SystemProperties::COMSETTER(DefaultHardDiskFormat) (IN_BSTR aDefaultHardDiskFormat) 378 378 { 379 379 AutoCaller autoCaller (this); … … 404 404 } 405 405 406 STDMETHODIMP SystemProperties::COMSETTER(RemoteDisplayAuthLibrary) (IN PTRBSTR aRemoteDisplayAuthLibrary)406 STDMETHODIMP SystemProperties::COMSETTER(RemoteDisplayAuthLibrary) (IN_BSTR aRemoteDisplayAuthLibrary) 407 407 { 408 408 AutoCaller autoCaller (this); … … 433 433 } 434 434 435 STDMETHODIMP SystemProperties::COMSETTER(WebServiceAuthLibrary) (IN PTRBSTR aWebServiceAuthLibrary)435 STDMETHODIMP SystemProperties::COMSETTER(WebServiceAuthLibrary) (IN_BSTR aWebServiceAuthLibrary) 436 436 { 437 437 AutoCaller autoCaller (this); … … 604 604 * @return ComObjPtr<HardDiskFormat> 605 605 */ 606 ComObjPtr <HardDiskFormat> SystemProperties::hardDiskFormat ( constBSTR aFormat)606 ComObjPtr <HardDiskFormat> SystemProperties::hardDiskFormat (CBSTR aFormat) 607 607 { 608 608 ComObjPtr <HardDiskFormat> format; … … 631 631 ///////////////////////////////////////////////////////////////////////////// 632 632 633 HRESULT SystemProperties::setDefaultMachineFolder ( constBSTR aPath)633 HRESULT SystemProperties::setDefaultMachineFolder (CBSTR aPath) 634 634 { 635 635 Utf8Str path; … … 653 653 } 654 654 655 HRESULT SystemProperties::setDefaultHardDiskFolder ( constBSTR aPath)655 HRESULT SystemProperties::setDefaultHardDiskFolder (CBSTR aPath) 656 656 { 657 657 Utf8Str path; … … 675 675 } 676 676 677 HRESULT SystemProperties::setDefaultHardDiskFormat ( constBSTR aFormat)677 HRESULT SystemProperties::setDefaultHardDiskFormat (CBSTR aFormat) 678 678 { 679 679 if (aFormat && *aFormat) … … 685 685 } 686 686 687 HRESULT SystemProperties::setRemoteDisplayAuthLibrary ( constBSTR aPath)687 HRESULT SystemProperties::setRemoteDisplayAuthLibrary (CBSTR aPath) 688 688 { 689 689 if (aPath && *aPath) … … 695 695 } 696 696 697 HRESULT SystemProperties::setWebServiceAuthLibrary ( constBSTR aPath)697 HRESULT SystemProperties::setWebServiceAuthLibrary (CBSTR aPath) 698 698 { 699 699 if (aPath && *aPath) -
trunk/src/VBox/Main/USBControllerImpl.cpp
r14972 r15051 335 335 // IUSBDeviceFilter properties 336 336 STDMETHOD(COMGETTER(Name)) (BSTR *aName); 337 STDMETHOD(COMSETTER(Name)) (IN PTRBSTR aName);337 STDMETHOD(COMSETTER(Name)) (IN_BSTR aName); 338 338 STDMETHOD(COMGETTER(Active)) (BOOL *aActive); 339 339 STDMETHOD(COMSETTER(Active)) (BOOL aActive); 340 340 STDMETHOD(COMGETTER(VendorId)) (BSTR *aVendorId); 341 STDMETHOD(COMSETTER(VendorId)) (IN PTRBSTR aVendorId);341 STDMETHOD(COMSETTER(VendorId)) (IN_BSTR aVendorId); 342 342 STDMETHOD(COMGETTER(ProductId)) (BSTR *aProductId); 343 STDMETHOD(COMSETTER(ProductId)) (IN PTRBSTR aProductId);343 STDMETHOD(COMSETTER(ProductId)) (IN_BSTR aProductId); 344 344 STDMETHOD(COMGETTER(Revision)) (BSTR *aRevision); 345 STDMETHOD(COMSETTER(Revision)) (IN PTRBSTR aRevision);345 STDMETHOD(COMSETTER(Revision)) (IN_BSTR aRevision); 346 346 STDMETHOD(COMGETTER(Manufacturer)) (BSTR *aManufacturer); 347 STDMETHOD(COMSETTER(Manufacturer)) (IN PTRBSTR aManufacturer);347 STDMETHOD(COMSETTER(Manufacturer)) (IN_BSTR aManufacturer); 348 348 STDMETHOD(COMGETTER(Product)) (BSTR *aProduct); 349 STDMETHOD(COMSETTER(Product)) (IN PTRBSTR aProduct);349 STDMETHOD(COMSETTER(Product)) (IN_BSTR aProduct); 350 350 STDMETHOD(COMGETTER(SerialNumber)) (BSTR *aSerialNumber); 351 STDMETHOD(COMSETTER(SerialNumber)) (IN PTRBSTR aSerialNumber);351 STDMETHOD(COMSETTER(SerialNumber)) (IN_BSTR aSerialNumber); 352 352 STDMETHOD(COMGETTER(Port)) (BSTR *aPort); 353 STDMETHOD(COMSETTER(Port)) (IN PTRBSTR aPort);353 STDMETHOD(COMSETTER(Port)) (IN_BSTR aPort); 354 354 STDMETHOD(COMGETTER(Remote)) (BSTR *aRemote); 355 STDMETHOD(COMSETTER(Remote)) (IN PTRBSTR aRemote);355 STDMETHOD(COMSETTER(Remote)) (IN_BSTR aRemote); 356 356 STDMETHOD(COMGETTER(MaskedInterfaces)) (ULONG *aMaskedIfs); 357 357 STDMETHOD(COMSETTER(MaskedInterfaces)) (ULONG aMaskedIfs); … … 384 384 ///////////////////////////////////////////////////////////////////////////// 385 385 386 STDMETHODIMP USBController::CreateDeviceFilter (IN PTRBSTR aName,386 STDMETHODIMP USBController::CreateDeviceFilter (IN_BSTR aName, 387 387 IUSBDeviceFilter **aFilter) 388 388 { -
trunk/src/VBox/Main/USBDeviceImpl.cpp
r14972 r15051 144 144 * @param aId Address of result variable. 145 145 */ 146 STDMETHODIMP OUSBDevice::COMGETTER(Id)( GUIDPARAMOUTaId)146 STDMETHODIMP OUSBDevice::COMGETTER(Id)(OUT_GUID aId) 147 147 { 148 148 CheckComArgOutPointerValid(aId); -
trunk/src/VBox/Main/VirtualBoxErrorInfoImpl.cpp
r14972 r15051 27 27 28 28 HRESULT VirtualBoxErrorInfo::init (HRESULT aResultCode, const GUID &aIID, 29 const BSTR aComponent, constBSTR aText,29 CBSTR aComponent, CBSTR aText, 30 30 IVirtualBoxErrorInfo *aNext) 31 31 { … … 50 50 } 51 51 52 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(InterfaceID) ( GUIDPARAMOUTaIID)52 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(InterfaceID) (OUT_GUID aIID) 53 53 { 54 54 CheckComArgOutPointerValid(aIID); -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r14959 r15051 745 745 746 746 /** @note Locks mSystemProperties object for reading. */ 747 STDMETHODIMP VirtualBox::CreateMachine (IN PTRBSTR aName,748 IN PTRBSTR aOsTypeId,749 IN PTRBSTR aBaseFolder,750 IN PTR GUIDPARAMaId,747 STDMETHODIMP VirtualBox::CreateMachine (IN_BSTR aName, 748 IN_BSTR aOsTypeId, 749 IN_BSTR aBaseFolder, 750 IN_GUID aId, 751 751 IMachine **aMachine) 752 752 { … … 826 826 } 827 827 828 STDMETHODIMP VirtualBox::CreateLegacyMachine (IN PTRBSTR aName,829 IN PTRBSTR aOsTypeId,830 IN PTRBSTR aSettingsFile,831 IN PTR GUIDPARAMaId,828 STDMETHODIMP VirtualBox::CreateLegacyMachine (IN_BSTR aName, 829 IN_BSTR aOsTypeId, 830 IN_BSTR aSettingsFile, 831 IN_GUID aId, 832 832 IMachine **aMachine) 833 833 { … … 891 891 } 892 892 893 STDMETHODIMP VirtualBox::OpenMachine (IN PTRBSTR aSettingsFile,893 STDMETHODIMP VirtualBox::OpenMachine (IN_BSTR aSettingsFile, 894 894 IMachine **aMachine) 895 895 { … … 963 963 964 964 /** @note Locks objects! */ 965 STDMETHODIMP VirtualBox::GetMachine (IN PTR GUIDPARAMaId, IMachine **aMachine)965 STDMETHODIMP VirtualBox::GetMachine (IN_GUID aId, IMachine **aMachine) 966 966 { 967 967 CheckComArgOutSafeArrayPointerValid(aMachine); … … 980 980 981 981 /** @note Locks this object for reading, then some machine objects for reading. */ 982 STDMETHODIMP VirtualBox::FindMachine (IN PTRBSTR aName, IMachine **aMachine)982 STDMETHODIMP VirtualBox::FindMachine (IN_BSTR aName, IMachine **aMachine) 983 983 { 984 984 LogFlowThisFuncEnter(); … … 1031 1031 1032 1032 /** @note Locks objects! */ 1033 STDMETHODIMP VirtualBox::UnregisterMachine (IN PTR GUIDPARAMaId,1033 STDMETHODIMP VirtualBox::UnregisterMachine (IN_GUID aId, 1034 1034 IMachine **aMachine) 1035 1035 { … … 1066 1066 } 1067 1067 1068 STDMETHODIMP VirtualBox::CreateHardDisk2 (IN PTRBSTR aFormat,1069 IN PTRBSTR aLocation,1068 STDMETHODIMP VirtualBox::CreateHardDisk2 (IN_BSTR aFormat, 1069 IN_BSTR aLocation, 1070 1070 IHardDisk2 **aHardDisk) 1071 1071 { … … 1097 1097 } 1098 1098 1099 STDMETHODIMP VirtualBox::OpenHardDisk2 (IN PTRBSTR aLocation,1099 STDMETHODIMP VirtualBox::OpenHardDisk2 (IN_BSTR aLocation, 1100 1100 IHardDisk2 **aHardDisk) 1101 1101 { … … 1131 1131 } 1132 1132 1133 STDMETHODIMP VirtualBox::GetHardDisk2 (IN PTR GUIDPARAMaId,1133 STDMETHODIMP VirtualBox::GetHardDisk2 (IN_GUID aId, 1134 1134 IHardDisk2 **aHardDisk) 1135 1135 { … … 1149 1149 } 1150 1150 1151 STDMETHODIMP VirtualBox::FindHardDisk2 (IN PTRBSTR aLocation,1151 STDMETHODIMP VirtualBox::FindHardDisk2 (IN_BSTR aLocation, 1152 1152 IHardDisk2 **aHardDisk) 1153 1153 { … … 1168 1168 1169 1169 /** @note Doesn't lock anything. */ 1170 STDMETHODIMP VirtualBox::OpenDVDImage (IN PTR BSTR aLocation, INPTR GUIDPARAMaId,1170 STDMETHODIMP VirtualBox::OpenDVDImage (IN_BSTR aLocation, IN_GUID aId, 1171 1171 IDVDImage2 **aDVDImage) 1172 1172 { … … 1199 1199 1200 1200 /** @note Locks objects! */ 1201 STDMETHODIMP VirtualBox::GetDVDImage (IN PTR GUIDPARAMaId, IDVDImage2 **aDVDImage)1201 STDMETHODIMP VirtualBox::GetDVDImage (IN_GUID aId, IDVDImage2 **aDVDImage) 1202 1202 { 1203 1203 CheckComArgOutSafeArrayPointerValid(aDVDImage); … … 1217 1217 1218 1218 /** @note Locks objects! */ 1219 STDMETHODIMP VirtualBox::FindDVDImage (IN PTRBSTR aLocation, IDVDImage2 **aDVDImage)1219 STDMETHODIMP VirtualBox::FindDVDImage (IN_BSTR aLocation, IDVDImage2 **aDVDImage) 1220 1220 { 1221 1221 CheckComArgNotNull(aLocation); … … 1235 1235 1236 1236 /** @note Doesn't lock anything. */ 1237 STDMETHODIMP VirtualBox::OpenFloppyImage (IN PTR BSTR aLocation, INPTR GUIDPARAMaId,1237 STDMETHODIMP VirtualBox::OpenFloppyImage (IN_BSTR aLocation, IN_GUID aId, 1238 1238 IFloppyImage2 **aFloppyImage) 1239 1239 { … … 1266 1266 1267 1267 /** @note Locks objects! */ 1268 STDMETHODIMP VirtualBox::GetFloppyImage (IN PTR GUIDPARAMaId,1268 STDMETHODIMP VirtualBox::GetFloppyImage (IN_GUID aId, 1269 1269 IFloppyImage2 **aFloppyImage) 1270 1270 … … 1286 1286 1287 1287 /** @note Locks objects! */ 1288 STDMETHODIMP VirtualBox::FindFloppyImage (IN PTRBSTR aLocation,1288 STDMETHODIMP VirtualBox::FindFloppyImage (IN_BSTR aLocation, 1289 1289 IFloppyImage2 **aFloppyImage) 1290 1290 { … … 1305 1305 1306 1306 /** @note Locks this object for reading. */ 1307 STDMETHODIMP VirtualBox::GetGuestOSType (IN PTRBSTR aId, IGuestOSType **aType)1307 STDMETHODIMP VirtualBox::GetGuestOSType (IN_BSTR aId, IGuestOSType **aType) 1308 1308 { 1309 1309 CheckComArgNotNull(aType); … … 1336 1336 1337 1337 STDMETHODIMP 1338 VirtualBox::CreateSharedFolder (IN PTR BSTR aName, INPTRBSTR aHostPath, BOOL aWritable)1338 VirtualBox::CreateSharedFolder (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable) 1339 1339 { 1340 1340 CheckComArgNotNull(aName); … … 1347 1347 } 1348 1348 1349 STDMETHODIMP VirtualBox::RemoveSharedFolder (IN PTRBSTR aName)1349 STDMETHODIMP VirtualBox::RemoveSharedFolder (IN_BSTR aName) 1350 1350 { 1351 1351 CheckComArgNotNull(aName); … … 1361 1361 */ 1362 1362 STDMETHODIMP VirtualBox:: 1363 GetNextExtraDataKey (IN PTRBSTR aKey, BSTR *aNextKey, BSTR *aNextValue)1363 GetNextExtraDataKey (IN_BSTR aKey, BSTR *aNextKey, BSTR *aNextValue) 1364 1364 { 1365 1365 CheckComArgNotNull(aNextKey); … … 1459 1459 * @note Locks this object for reading. 1460 1460 */ 1461 STDMETHODIMP VirtualBox::GetExtraData (IN PTRBSTR aKey, BSTR *aValue)1461 STDMETHODIMP VirtualBox::GetExtraData (IN_BSTR aKey, BSTR *aValue) 1462 1462 { 1463 1463 CheckComArgNotNull(aKey); … … 1520 1520 * @note Locks this object for writing. 1521 1521 */ 1522 STDMETHODIMP VirtualBox::SetExtraData (IN PTR BSTR aKey, INPTRBSTR aValue)1522 STDMETHODIMP VirtualBox::SetExtraData (IN_BSTR aKey, IN_BSTR aValue) 1523 1523 { 1524 1524 CheckComArgNotNull(aKey); … … 1576 1576 { 1577 1577 const char *sep = error.isEmpty() ? "" : ": "; 1578 const BSTR err = error.isNull() ? (constBSTR) L"" : error.raw();1578 CBSTR err = error.isNull() ? (CBSTR) L"" : error.raw(); 1579 1579 LogWarningFunc (("Someone vetoed! Change refused%s%ls\n", 1580 1580 sep, err)); … … 1624 1624 * @note Locks objects! 1625 1625 */ 1626 STDMETHODIMP VirtualBox::OpenSession (ISession *aSession, IN PTR GUIDPARAMaMachineId)1626 STDMETHODIMP VirtualBox::OpenSession (ISession *aSession, IN_GUID aMachineId) 1627 1627 { 1628 1628 CheckComArgNotNull(aSession); … … 1672 1672 */ 1673 1673 STDMETHODIMP VirtualBox::OpenRemoteSession (ISession *aSession, 1674 IN PTR GUIDPARAMaMachineId,1675 IN PTRBSTR aType,1676 IN PTRBSTR aEnvironment,1674 IN_GUID aMachineId, 1675 IN_BSTR aType, 1676 IN_BSTR aEnvironment, 1677 1677 IProgress **aProgress) 1678 1678 { … … 1731 1731 */ 1732 1732 STDMETHODIMP VirtualBox::OpenExistingSession (ISession *aSession, 1733 IN PTR GUIDPARAMaMachineId)1733 IN_GUID aMachineId) 1734 1734 { 1735 1735 CheckComArgNotNull(aSession); … … 1808 1808 } 1809 1809 1810 STDMETHODIMP VirtualBox::WaitForPropertyChange (IN PTRBSTR aWhat, ULONG aTimeout,1810 STDMETHODIMP VirtualBox::WaitForPropertyChange (IN_BSTR aWhat, ULONG aTimeout, 1811 1811 BSTR *aChanged, BSTR *aValues) 1812 1812 { … … 1922 1922 * @note Doesn't lock objects. 1923 1923 */ 1924 HRESULT VirtualBox::removeProgress (IN PTR GUIDPARAMaId)1924 HRESULT VirtualBox::removeProgress (IN_GUID aId) 1925 1925 { 1926 1926 AutoCaller autoCaller (this); … … 2283 2283 * @note Locks this object for reading. 2284 2284 */ 2285 BOOL VirtualBox::onExtraDataCanChange (const Guid &aId, IN PTR BSTR aKey, INPTRBSTR aValue,2285 BOOL VirtualBox::onExtraDataCanChange (const Guid &aId, IN_BSTR aKey, IN_BSTR aValue, 2286 2286 Bstr &aError) 2287 2287 { … … 2323 2323 { 2324 2324 ExtraDataEvent (VirtualBox *aVB, const Guid &aMachineId, 2325 IN PTR BSTR aKey, INPTRBSTR aVal)2325 IN_BSTR aKey, IN_BSTR aVal) 2326 2326 : CallbackEvent (aVB), machineId (aMachineId) 2327 2327 , key (aKey), val (aVal) … … 2342 2342 * @note Doesn't lock any object. 2343 2343 */ 2344 void VirtualBox::onExtraDataChange (const Guid &aId, IN PTR BSTR aKey, INPTRBSTR aValue)2344 void VirtualBox::onExtraDataChange (const Guid &aId, IN_BSTR aKey, IN_BSTR aValue) 2345 2345 { 2346 2346 postEvent (new ExtraDataEvent (this, aId, aKey, aValue)); … … 2451 2451 { 2452 2452 GuestPropertyEvent (VirtualBox *aVBox, const Guid &aMachineId, 2453 IN PTR BSTR aName, INPTR BSTR aValue, INPTRBSTR aFlags)2453 IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags) 2454 2454 : CallbackEvent (aVBox), machineId (aMachineId) 2455 2455 , name (aName), value (aValue), flags(aFlags) … … 2470 2470 * @note Doesn't lock any object. 2471 2471 */ 2472 void VirtualBox::onGuestPropertyChange (const Guid &aMachineId, IN PTRBSTR aName,2473 IN PTR BSTR aValue, INPTRBSTR aFlags)2472 void VirtualBox::onGuestPropertyChange (const Guid &aMachineId, IN_BSTR aName, 2473 IN_BSTR aValue, IN_BSTR aFlags) 2474 2474 { 2475 2475 postEvent (new GuestPropertyEvent (this, aMachineId, aName, aValue, aFlags)); … … 2608 2608 */ 2609 2609 HRESULT VirtualBox:: 2610 findHardDisk2 (const Guid *aId, constBSTR aLocation,2610 findHardDisk2 (const Guid *aId, CBSTR aLocation, 2611 2611 bool aSetError, ComObjPtr <HardDisk2> *aHardDisk /*= NULL*/) 2612 2612 { … … 2683 2683 * @note Locks this object and image objects for reading. 2684 2684 */ 2685 HRESULT VirtualBox::findDVDImage2 (const Guid *aId, constBSTR aLocation,2685 HRESULT VirtualBox::findDVDImage2 (const Guid *aId, CBSTR aLocation, 2686 2686 bool aSetError, 2687 2687 ComObjPtr <DVDImage2> *aImage /* = NULL */) … … 2755 2755 * @note Locks this object and image objects for reading. 2756 2756 */ 2757 HRESULT VirtualBox::findFloppyImage2 (const Guid *aId, constBSTR aLocation,2757 HRESULT VirtualBox::findFloppyImage2 (const Guid *aId, CBSTR aLocation, 2758 2758 bool aSetError, 2759 2759 ComObjPtr <FloppyImage2> *aImage /* = NULL */) -
trunk/src/VBox/Main/glue/VirtualBoxErrorInfo.cpp
r13580 r15051 69 69 } 70 70 71 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(InterfaceID) ( GUIDPARAMOUTaIID)71 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(InterfaceID) (OUT_GUID aIID) 72 72 { 73 73 if (!aIID) -
trunk/src/VBox/Main/include/BIOSSettingsImpl.h
r14949 r15051 107 107 STDMETHOD(COMSETTER(LogoDisplayTime))(ULONG displayTime); 108 108 STDMETHOD(COMGETTER(LogoImagePath))(BSTR *imagePath); 109 STDMETHOD(COMSETTER(LogoImagePath))(IN PTRBSTR imagePath);109 STDMETHOD(COMSETTER(LogoImagePath))(IN_BSTR imagePath); 110 110 STDMETHOD(COMGETTER(BootMenuMode))(BIOSBootMenuMode_T *bootMenuMode); 111 111 STDMETHOD(COMSETTER(BootMenuMode))(BIOSBootMenuMode_T bootMenuMode); -
trunk/src/VBox/Main/include/ConsoleImpl.h
r14949 r15051 141 141 STDMETHOD(GetGuestEnteredACPIMode)(BOOL *aEntered); 142 142 STDMETHOD(SaveState) (IProgress **aProgress); 143 STDMETHOD(AdoptSavedState) (IN PTRBSTR aSavedStateFile);143 STDMETHOD(AdoptSavedState) (IN_BSTR aSavedStateFile); 144 144 STDMETHOD(DiscardSavedState)(); 145 145 STDMETHOD(GetDeviceActivity) (DeviceType_T aDeviceType, 146 146 DeviceActivity_T *aDeviceActivity); 147 STDMETHOD(AttachUSBDevice) (IN PTR GUIDPARAMaId);148 STDMETHOD(DetachUSBDevice) (IN PTR GUIDPARAMaId, IUSBDevice **aDevice);149 STDMETHOD(CreateSharedFolder) (IN PTR BSTR aName, INPTRBSTR aHostPath, BOOL aWritable);150 STDMETHOD(RemoveSharedFolder) (IN PTRBSTR aName);151 STDMETHOD(TakeSnapshot) (IN PTR BSTR aName, INPTRBSTR aDescription,147 STDMETHOD(AttachUSBDevice) (IN_GUID aId); 148 STDMETHOD(DetachUSBDevice) (IN_GUID aId, IUSBDevice **aDevice); 149 STDMETHOD(CreateSharedFolder) (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable); 150 STDMETHOD(RemoveSharedFolder) (IN_BSTR aName); 151 STDMETHOD(TakeSnapshot) (IN_BSTR aName, IN_BSTR aDescription, 152 152 IProgress **aProgress); 153 STDMETHOD(DiscardSnapshot) (IN PTR GUIDPARAMaId, IProgress **aProgress);153 STDMETHOD(DiscardSnapshot) (IN_GUID aId, IProgress **aProgress); 154 154 STDMETHOD(DiscardCurrentState) (IProgress **aProgress); 155 155 STDMETHOD(DiscardCurrentSnapshotAndState) (IProgress **aProgress); … … 189 189 HRESULT onSharedFolderChange (BOOL aGlobal); 190 190 HRESULT onUSBDeviceAttach (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs); 191 HRESULT onUSBDeviceDetach (IN PTR GUIDPARAMaId, IVirtualBoxErrorInfo *aError);192 HRESULT getGuestProperty (IN PTRBSTR aKey, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags);193 HRESULT setGuestProperty (IN PTR BSTR aKey, INPTR BSTR aValue, INPTRBSTR aFlags);194 HRESULT enumerateGuestProperties (IN PTRBSTR aPatterns, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags));191 HRESULT onUSBDeviceDetach (IN_GUID aId, IVirtualBoxErrorInfo *aError); 192 HRESULT getGuestProperty (IN_BSTR aKey, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags); 193 HRESULT setGuestProperty (IN_BSTR aKey, IN_BSTR aValue, IN_BSTR aFlags); 194 HRESULT enumerateGuestProperties (IN_BSTR aPatterns, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags)); 195 195 VMMDev *getVMMDev() { return mVMMDev; } 196 196 AudioSniffer *getAudioSniffer () { return mAudioSniffer; } … … 218 218 void onUSBDeviceStateChange (IUSBDevice *aDevice, bool aAttached, 219 219 IVirtualBoxErrorInfo *aError); 220 void onRuntimeError (BOOL aFatal, IN PTR BSTR aErrorID, INPTRBSTR aMessage);220 void onRuntimeError (BOOL aFatal, IN_BSTR aErrorID, IN_BSTR aMessage); 221 221 HRESULT onShowWindow (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId); 222 222 … … 421 421 } 422 422 423 HRESULT findSharedFolder ( constBSTR aName,423 HRESULT findSharedFolder (CBSTR aName, 424 424 ComObjPtr <SharedFolder> &aSharedFolder, 425 425 bool aSetError = false); 426 426 427 427 HRESULT fetchSharedFolders (BOOL aGlobal); 428 bool findOtherSharedFolder (IN PTRBSTR aName,428 bool findOtherSharedFolder (IN_BSTR aName, 429 429 SharedFolderDataMap::const_iterator &aIt); 430 430 431 HRESULT createSharedFolder ( INPTRBSTR aName, SharedFolderData aData);432 HRESULT removeSharedFolder ( INPTRBSTR aName);431 HRESULT createSharedFolder (CBSTR aName, SharedFolderData aData); 432 HRESULT removeSharedFolder (CBSTR aName); 433 433 434 434 static DECLCALLBACK(int) configConstructor(PVM pVM, void *pvConsole); … … 494 494 static DECLCALLBACK(int) doGuestPropNotification (void *pvExtension, uint32_t, 495 495 void *pvParms, uint32_t cbParms); 496 HRESULT doEnumerateGuestProperties ( INPTRBSTR aPatterns,496 HRESULT doEnumerateGuestProperties (CBSTR aPatterns, 497 497 ComSafeArrayOut(BSTR, aNames), 498 498 ComSafeArrayOut(BSTR, aValues), -
trunk/src/VBox/Main/include/DVDDriveImpl.h
r14949 r15051 91 91 92 92 // IDVDDrive methods 93 STDMETHOD(MountImage) (IN PTR GUIDPARAMaImageId);93 STDMETHOD(MountImage) (IN_GUID aImageId); 94 94 STDMETHOD(CaptureHostDrive) (IHostDVDDrive *aHostDVDDrive); 95 95 STDMETHOD(Unmount)(); -
trunk/src/VBox/Main/include/DisplayImpl.h
r14949 r15051 191 191 } 192 192 193 STDMETHOD(OnRuntimeError)(BOOL fatal, IN PTR BSTR id, INPTRBSTR message)193 STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR id, IN_BSTR message) 194 194 { 195 195 return S_OK; -
trunk/src/VBox/Main/include/FloppyDriveImpl.h
r14949 r15051 91 91 92 92 // IFloppyDrive methods 93 STDMETHOD(MountImage) (IN PTR GUIDPARAMaImageId);93 STDMETHOD(MountImage) (IN_GUID aImageId); 94 94 STDMETHOD(CaptureHostDrive) (IHostFloppyDrive *aHostFloppyDrive); 95 95 STDMETHOD(Unmount)(); -
trunk/src/VBox/Main/include/GuestImpl.h
r14949 r15051 70 70 71 71 // IGuest methods 72 STDMETHOD(SetCredentials)(IN PTR BSTR aUserName, INPTRBSTR aPassword,73 IN PTRBSTR aDomain, BOOL aAllowInteractiveLogon);72 STDMETHOD(SetCredentials)(IN_BSTR aUserName, IN_BSTR aPassword, 73 IN_BSTR aDomain, BOOL aAllowInteractiveLogon); 74 74 STDMETHOD(GetStatistic)(ULONG aCpuId, GuestStatisticType_T aStatistic, ULONG *aStatVal); 75 75 -
trunk/src/VBox/Main/include/HardDisk2Impl.h
r15044 r15051 77 77 78 78 // public initializer/uninitializer for internal purposes only 79 HRESULT init (VirtualBox *aVirtualBox, constBSTR aFormat,80 constBSTR aLocation);79 HRESULT init (VirtualBox *aVirtualBox, CBSTR aFormat, 80 CBSTR aLocation); 81 81 HRESULT init (VirtualBox *aVirtualBox, 82 constBSTR aLocation);82 CBSTR aLocation); 83 83 HRESULT init (VirtualBox *aVirtualBox, HardDisk2 *aParent, 84 84 const settings::Key &aNode); … … 99 99 100 100 // IHardDisk2 methods 101 STDMETHOD(GetProperty) (IN PTRBSTR aName, BSTR *aValue);102 STDMETHOD(SetProperty) (IN PTR BSTR aName, INPTRBSTR aValue);103 STDMETHOD(GetProperties) (IN PTRBSTR aNames,101 STDMETHOD(GetProperty) (IN_BSTR aName, BSTR *aValue); 102 STDMETHOD(SetProperty) (IN_BSTR aName, IN_BSTR aValue); 103 STDMETHOD(GetProperties) (IN_BSTR aNames, 104 104 ComSafeArrayOut (BSTR, aReturnNames), 105 105 ComSafeArrayOut (BSTR, aReturnValues)); 106 STDMETHOD(SetProperties) (ComSafeArrayIn (IN PTRBSTR, aNames),107 ComSafeArrayIn (IN PTRBSTR, aValues));106 STDMETHOD(SetProperties) (ComSafeArrayIn (IN_BSTR, aNames), 107 ComSafeArrayIn (IN_BSTR, aValues)); 108 108 STDMETHOD(CreateDynamicStorage) (ULONG64 aLogicalSize, IProgress **aProgress); 109 109 STDMETHOD(CreateFixedStorage) (ULONG64 aLogicalSize, IProgress **aProgress); 110 110 STDMETHOD(DeleteStorage) (IProgress **aProgress); 111 111 STDMETHOD(CreateDiffStorage) (IHardDisk2 *aTarget, IProgress **aProgress); 112 STDMETHOD(MergeTo) (IN PTR GUIDPARAMaTargetId, IProgress **aProgress);112 STDMETHOD(MergeTo) (IN_GUID aTargetId, IProgress **aProgress); 113 113 STDMETHOD(CloneTo) (IHardDisk2 *aTarget, IProgress **aProgress); 114 114 STDMETHOD(FlattenTo) (IHardDisk2 *aTarget, IProgress **aProgress); … … 232 232 private: 233 233 234 HRESULT setLocation ( constBSTR aLocation);235 HRESULT setFormat ( constBSTR aFormat);234 HRESULT setLocation (CBSTR aLocation); 235 HRESULT setFormat (CBSTR aFormat); 236 236 237 237 HRESULT queryInfo(); -
trunk/src/VBox/Main/include/HostDVDDriveImpl.h
r14949 r15051 53 53 54 54 // public initializer/uninitializer for internal purposes only 55 HRESULT init (IN PTR BSTR aName, INPTRBSTR aUdi = NULL,56 IN PTRBSTR aDescription = NULL);55 HRESULT init (IN_BSTR aName, IN_BSTR aUdi = NULL, 56 IN_BSTR aDescription = NULL); 57 57 void uninit(); 58 58 … … 85 85 COM_DECL_READONLY_ENUM_AND_COLLECTION_BEGIN (HostDVDDrive) 86 86 87 STDMETHOD(FindByName) (IN PTRBSTR aName, IHostDVDDrive **aDrive)87 STDMETHOD(FindByName) (IN_BSTR aName, IHostDVDDrive **aDrive) 88 88 { 89 89 if (!aName) -
trunk/src/VBox/Main/include/HostFloppyDriveImpl.h
r14949 r15051 53 53 54 54 // public initializer/uninitializer for internal purposes only 55 HRESULT init (IN PTR BSTR aName, INPTRBSTR aUdi = NULL,56 IN PTRBSTR aDescription = NULL);55 HRESULT init (IN_BSTR aName, IN_BSTR aUdi = NULL, 56 IN_BSTR aDescription = NULL); 57 57 void uninit(); 58 58 … … 85 85 COM_DECL_READONLY_ENUM_AND_COLLECTION_BEGIN (HostFloppyDrive) 86 86 87 STDMETHOD(FindByName) (IN PTRBSTR aName, IHostFloppyDrive **aDrive)87 STDMETHOD(FindByName) (IN_BSTR aName, IHostFloppyDrive **aDrive) 88 88 { 89 89 if (!aName) -
trunk/src/VBox/Main/include/HostImpl.h
r14991 r15051 99 99 // IHost methods 100 100 #ifdef RT_OS_WINDOWS 101 STDMETHOD(CreateHostNetworkInterface) (IN PTRBSTR aName,101 STDMETHOD(CreateHostNetworkInterface) (IN_BSTR aName, 102 102 IHostNetworkInterface **aHostNetworkInterface, 103 103 IProgress **aProgress); 104 STDMETHOD(RemoveHostNetworkInterface) (IN PTR GUIDPARAMaId,104 STDMETHOD(RemoveHostNetworkInterface) (IN_GUID aId, 105 105 IHostNetworkInterface **aHostNetworkInterface, 106 106 IProgress **aProgress); 107 107 #endif 108 STDMETHOD(CreateUSBDeviceFilter) (IN PTRBSTR aName, IHostUSBDeviceFilter **aFilter);108 STDMETHOD(CreateUSBDeviceFilter) (IN_BSTR aName, IHostUSBDeviceFilter **aFilter); 109 109 STDMETHOD(InsertUSBDeviceFilter) (ULONG aPosition, IHostUSBDeviceFilter *aFilter); 110 110 STDMETHOD(RemoveUSBDeviceFilter) (ULONG aPosition, IHostUSBDeviceFilter **aFilter); -
trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h
r14949 r15051 59 59 // IHostNetworkInterface properties 60 60 STDMETHOD(COMGETTER(Name)) (BSTR *aInterfaceName); 61 STDMETHOD(COMGETTER(Id)) ( GUIDPARAMOUTaGuid);61 STDMETHOD(COMGETTER(Id)) (OUT_GUID aGuid); 62 62 63 63 // for VirtualBoxSupportErrorInfoImpl … … 71 71 COM_DECL_READONLY_ENUM_AND_COLLECTION_BEGIN (HostNetworkInterface) 72 72 73 STDMETHOD(FindByName) (IN PTRBSTR name, IHostNetworkInterface **networkInterface)73 STDMETHOD(FindByName) (IN_BSTR name, IHostNetworkInterface **networkInterface) 74 74 { 75 75 if (!name) … … 97 97 } 98 98 99 STDMETHOD(FindById) (IN PTR GUIDPARAMid, IHostNetworkInterface **networkInterface)99 STDMETHOD(FindById) (IN_GUID id, IHostNetworkInterface **networkInterface) 100 100 { 101 101 if (Guid(id).isEmpty()) -
trunk/src/VBox/Main/include/MachineDebuggerImpl.h
r14949 r15051 82 82 83 83 // IMachineDebugger methods 84 STDMETHOD(ResetStats (IN PTRBSTR aPattern));85 STDMETHOD(DumpStats (IN PTRBSTR aPattern));86 STDMETHOD(GetStats (IN PTRBSTR aPattern, BOOL aWithDescriptions, BSTR *aStats));84 STDMETHOD(ResetStats (IN_BSTR aPattern)); 85 STDMETHOD(DumpStats (IN_BSTR aPattern)); 86 STDMETHOD(GetStats (IN_BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats)); 87 87 88 88 -
trunk/src/VBox/Main/include/MachineImpl.h
r14949 r15051 458 458 459 459 // public initializer/uninitializer for internal purposes only 460 HRESULT init (VirtualBox *aParent, constBSTR aConfigFile,461 InitMode aMode, constBSTR aName = NULL,460 HRESULT init (VirtualBox *aParent, CBSTR aConfigFile, 461 InitMode aMode, CBSTR aName = NULL, 462 462 GuestOSType *aOsType = NULL, 463 463 BOOL aNameSync = TRUE, const Guid *aId = NULL); … … 469 469 STDMETHOD(COMGETTER(AccessError)) (IVirtualBoxErrorInfo **aAccessError); 470 470 STDMETHOD(COMGETTER(Name))(BSTR *aName); 471 STDMETHOD(COMSETTER(Name))(IN PTRBSTR aName);471 STDMETHOD(COMSETTER(Name))(IN_BSTR aName); 472 472 STDMETHOD(COMGETTER(Description))(BSTR *aDescription); 473 STDMETHOD(COMSETTER(Description))(IN PTRBSTR aDescription);474 STDMETHOD(COMGETTER(Id))( GUIDPARAMOUTaId);473 STDMETHOD(COMSETTER(Description))(IN_BSTR aDescription); 474 STDMETHOD(COMGETTER(Id))(OUT_GUID aId); 475 475 STDMETHOD(COMGETTER(OSTypeId)) (BSTR *aOSTypeId); 476 STDMETHOD(COMSETTER(OSTypeId)) (IN PTRBSTR aOSTypeId);476 STDMETHOD(COMSETTER(OSTypeId)) (IN_BSTR aOSTypeId); 477 477 STDMETHOD(COMGETTER(MemorySize))(ULONG *memorySize); 478 478 STDMETHOD(COMSETTER(MemorySize))(ULONG memorySize); … … 499 499 STDMETHOD(COMSETTER(PAEEnabled))(BOOL enabled); 500 500 STDMETHOD(COMGETTER(SnapshotFolder))(BSTR *aSavedStateFolder); 501 STDMETHOD(COMSETTER(SnapshotFolder))(IN PTRBSTR aSavedStateFolder);501 STDMETHOD(COMSETTER(SnapshotFolder))(IN_BSTR aSavedStateFolder); 502 502 STDMETHOD(COMGETTER(HardDisk2Attachments))(ComSafeArrayOut (IHardDisk2Attachment *, aAttachments)); 503 503 STDMETHOD(COMGETTER(VRDPServer))(IVRDPServer **vrdpServer); … … 524 524 STDMETHOD(COMSETTER(ClipboardMode)) (ClipboardMode_T aClipboardMode); 525 525 STDMETHOD(COMGETTER(GuestPropertyNotificationPatterns)) (BSTR *aPattern); 526 STDMETHOD(COMSETTER(GuestPropertyNotificationPatterns)) (IN PTRBSTR aPattern);526 STDMETHOD(COMSETTER(GuestPropertyNotificationPatterns)) (IN_BSTR aPattern); 527 527 528 528 // IMachine methods 529 529 STDMETHOD(SetBootOrder)(ULONG aPosition, DeviceType_T aDevice); 530 530 STDMETHOD(GetBootOrder)(ULONG aPosition, DeviceType_T *aDevice); 531 STDMETHOD(AttachHardDisk2) (IN PTR GUIDPARAMaId, StorageBus_T aBus,531 STDMETHOD(AttachHardDisk2) (IN_GUID aId, StorageBus_T aBus, 532 532 LONG aChannel, LONG aDevice); 533 533 STDMETHOD(GetHardDisk2) (StorageBus_T aBus, LONG aChannel, LONG aDevice, … … 537 537 STDMETHOD(GetParallelPort) (ULONG slot, IParallelPort **port); 538 538 STDMETHOD(GetNetworkAdapter) (ULONG slot, INetworkAdapter **adapter); 539 STDMETHOD(GetNextExtraDataKey)(IN PTRBSTR aKey, BSTR *aNextKey, BSTR *aNextValue);540 STDMETHOD(GetExtraData)(IN PTRBSTR aKey, BSTR *aValue);541 STDMETHOD(SetExtraData)(IN PTR BSTR aKey, INPTRBSTR aValue);539 STDMETHOD(GetNextExtraDataKey)(IN_BSTR aKey, BSTR *aNextKey, BSTR *aNextValue); 540 STDMETHOD(GetExtraData)(IN_BSTR aKey, BSTR *aValue); 541 STDMETHOD(SetExtraData)(IN_BSTR aKey, IN_BSTR aValue); 542 542 STDMETHOD(SaveSettings)(); 543 543 STDMETHOD(SaveSettingsWithBackup) (BSTR *aBakFileName); 544 544 STDMETHOD(DiscardSettings)(); 545 545 STDMETHOD(DeleteSettings)(); 546 STDMETHOD(GetSnapshot) (IN PTR GUIDPARAMaId, ISnapshot **aSnapshot);547 STDMETHOD(FindSnapshot) (IN PTRBSTR aName, ISnapshot **aSnapshot);548 STDMETHOD(SetCurrentSnapshot) (IN PTR GUIDPARAMaId);549 STDMETHOD(CreateSharedFolder) (IN PTR BSTR aName, INPTRBSTR aHostPath, BOOL aWritable);550 STDMETHOD(RemoveSharedFolder) (IN PTRBSTR aName);546 STDMETHOD(GetSnapshot) (IN_GUID aId, ISnapshot **aSnapshot); 547 STDMETHOD(FindSnapshot) (IN_BSTR aName, ISnapshot **aSnapshot); 548 STDMETHOD(SetCurrentSnapshot) (IN_GUID aId); 549 STDMETHOD(CreateSharedFolder) (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable); 550 STDMETHOD(RemoveSharedFolder) (IN_BSTR aName); 551 551 STDMETHOD(CanShowConsoleWindow) (BOOL *aCanShow); 552 552 STDMETHOD(ShowConsoleWindow) (ULONG64 *aWinId); 553 STDMETHOD(GetGuestProperty) (IN PTRBSTR aName, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags);554 STDMETHOD(GetGuestPropertyValue) (IN PTRBSTR aName, BSTR *aValue);555 STDMETHOD(GetGuestPropertyTimestamp) (IN PTRBSTR aName, ULONG64 *aTimestamp);556 STDMETHOD(SetGuestProperty) (IN PTR BSTR aName, INPTR BSTR aValue, INPTRBSTR aFlags);557 STDMETHOD(SetGuestPropertyValue) (IN PTR BSTR aName, INPTRBSTR aValue);558 STDMETHOD(EnumerateGuestProperties) (IN PTRBSTR aPattern, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags));553 STDMETHOD(GetGuestProperty) (IN_BSTR aName, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags); 554 STDMETHOD(GetGuestPropertyValue) (IN_BSTR aName, BSTR *aValue); 555 STDMETHOD(GetGuestPropertyTimestamp) (IN_BSTR aName, ULONG64 *aTimestamp); 556 STDMETHOD(SetGuestProperty) (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags); 557 STDMETHOD(SetGuestPropertyValue) (IN_BSTR aName, IN_BSTR aValue); 558 STDMETHOD(EnumerateGuestProperties) (IN_BSTR aPattern, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags)); 559 559 560 560 // public methods only for internal purposes … … 636 636 HRESULT openSession (IInternalSessionControl *aControl); 637 637 HRESULT openRemoteSession (IInternalSessionControl *aControl, 638 IN PTR BSTR aType, INPTRBSTR aEnvironment,638 IN_BSTR aType, IN_BSTR aEnvironment, 639 639 Progress *aProgress); 640 640 HRESULT openExistingSession (IInternalSessionControl *aControl); … … 682 682 HRESULT trySetRegistered (BOOL aRegistered); 683 683 684 HRESULT getSharedFolder ( constBSTR aName,684 HRESULT getSharedFolder (CBSTR aName, 685 685 ComObjPtr <SharedFolder> &aSharedFolder, 686 686 bool aSetError = false) … … 713 713 virtual HRESULT setMachineState (MachineState_T aMachineState); 714 714 715 HRESULT findSharedFolder ( constBSTR aName,715 HRESULT findSharedFolder (CBSTR aName, 716 716 ComObjPtr <SharedFolder> &aSharedFolder, 717 717 bool aSetError = false); … … 730 730 HRESULT findSnapshot (const Guid &aId, ComObjPtr <Snapshot> &aSnapshot, 731 731 bool aSetError = false); 732 HRESULT findSnapshot ( constBSTR aName, ComObjPtr <Snapshot> &aSnapshot,732 HRESULT findSnapshot (IN_BSTR aName, ComObjPtr <Snapshot> &aSnapshot, 733 733 bool aSetError = false); 734 734 … … 875 875 STDMETHOD(GetIPCId)(BSTR *id); 876 876 STDMETHOD(RunUSBDeviceFilters) (IUSBDevice *aUSBDevice, BOOL *aMatched, ULONG *aMaskedIfs); 877 STDMETHOD(CaptureUSBDevice) (IN PTR GUIDPARAMaId);878 STDMETHOD(DetachUSBDevice) (IN PTR GUIDPARAMaId, BOOL aDone);877 STDMETHOD(CaptureUSBDevice) (IN_GUID aId); 878 STDMETHOD(DetachUSBDevice) (IN_GUID aId, BOOL aDone); 879 879 STDMETHOD(AutoCaptureUSBDevices)(); 880 880 STDMETHOD(DetachAllUSBDevices)(BOOL aDone); … … 882 882 STDMETHOD(BeginSavingState) (IProgress *aProgress, BSTR *aStateFilePath); 883 883 STDMETHOD(EndSavingState) (BOOL aSuccess); 884 STDMETHOD(AdoptSavedState) (IN PTRBSTR aSavedStateFile);884 STDMETHOD(AdoptSavedState) (IN_BSTR aSavedStateFile); 885 885 STDMETHOD(BeginTakingSnapshot) (IConsole *aInitiator, 886 IN PTR BSTR aName, INPTRBSTR aDescription,886 IN_BSTR aName, IN_BSTR aDescription, 887 887 IProgress *aProgress, BSTR *aStateFilePath, 888 888 IProgress **aServerProgress); 889 889 STDMETHOD(EndTakingSnapshot) (BOOL aSuccess); 890 STDMETHOD(DiscardSnapshot) (IConsole *aInitiator, IN PTR GUIDPARAMaId,890 STDMETHOD(DiscardSnapshot) (IConsole *aInitiator, IN_GUID aId, 891 891 MachineState_T *aMachineState, IProgress **aProgress); 892 892 STDMETHOD(DiscardCurrentState) ( … … 896 896 STDMETHOD(PullGuestProperties) (ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), 897 897 ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags)); 898 STDMETHOD(PushGuestProperties) (ComSafeArrayIn(IN PTR BSTR, aNames), ComSafeArrayIn(INPTRBSTR, aValues),899 ComSafeArrayIn(ULONG64, aTimestamps), ComSafeArrayIn(IN PTRBSTR, aFlags));900 STDMETHOD(PushGuestProperty) (IN PTR BSTR aName, INPTRBSTR aValue,901 ULONG64 aTimestamp, IN PTRBSTR aFlags);898 STDMETHOD(PushGuestProperties) (ComSafeArrayIn(IN_BSTR, aNames), ComSafeArrayIn(IN_BSTR, aValues), 899 ComSafeArrayIn(ULONG64, aTimestamps), ComSafeArrayIn(IN_BSTR, aFlags)); 900 STDMETHOD(PushGuestProperty) (IN_BSTR aName, IN_BSTR aValue, 901 ULONG64 aTimestamp, IN_BSTR aFlags); 902 902 903 903 // public methods only for internal purposes … … 915 915 IVirtualBoxErrorInfo *aError, 916 916 ULONG aMaskedIfs); 917 HRESULT onUSBDeviceDetach (IN PTR GUIDPARAMaId,917 HRESULT onUSBDeviceDetach (IN_GUID aId, 918 918 IVirtualBoxErrorInfo *aError); 919 919 HRESULT onSharedFolderChange(); … … 1028 1028 // public initializer/uninitializer for internal purposes only 1029 1029 HRESULT init (SessionMachine *aSessionMachine, 1030 IN PTR GUIDPARAM aSnapshotId, INPTRBSTR aStateFilePath);1030 IN_GUID aSnapshotId, IN_BSTR aStateFilePath); 1031 1031 HRESULT init (Machine *aMachine, 1032 1032 const settings::Key &aHWNode, const settings::Key &aHDAsNode, 1033 IN PTR GUIDPARAM aSnapshotId, INPTRBSTR aStateFilePath);1033 IN_GUID aSnapshotId, IN_BSTR aStateFilePath); 1034 1034 void uninit(); 1035 1035 -
trunk/src/VBox/Main/include/Matching.h
r14949 r15051 486 486 : F (aString), mString (aString) {} 487 487 488 Matchable ( constBSTR aString)488 Matchable (CBSTR aString) 489 489 : F (Bstr (aString)), mString (aString) {} 490 490 … … 500 500 } 501 501 502 Matchable &operator= ( constBSTR aString)502 Matchable &operator= (CBSTR aString) 503 503 { 504 504 F::operator= (Bstr (aString)); -
trunk/src/VBox/Main/include/MediumImpl.h
r14949 r15051 92 92 93 93 // IMedium properties 94 STDMETHOD(COMGETTER(Id)) ( GUIDPARAMOUTaId);94 STDMETHOD(COMGETTER(Id)) (OUT_GUID aId); 95 95 STDMETHOD(COMGETTER(Description)) (BSTR *aDescription); 96 STDMETHOD(COMSETTER(Description)) (IN PTRBSTR aDescription);96 STDMETHOD(COMSETTER(Description)) (IN_BSTR aDescription); 97 97 STDMETHOD(COMGETTER(State)) (MediaState_T *aState); 98 98 STDMETHOD(COMGETTER(Location)) (BSTR *aLocation); 99 STDMETHOD(COMSETTER(Location)) (IN PTRBSTR aLocation);99 STDMETHOD(COMSETTER(Location)) (IN_BSTR aLocation); 100 100 STDMETHOD(COMGETTER(Name)) (BSTR *aName); 101 101 STDMETHOD(COMGETTER(Size)) (ULONG64 *aSize); … … 104 104 105 105 // IMedium methods 106 STDMETHOD(GetSnapshotIds) (IN PTR GUIDPARAMaMachineId,106 STDMETHOD(GetSnapshotIds) (IN_GUID aMachineId, 107 107 ComSafeGUIDArrayOut (aSnapshotIds)); 108 108 STDMETHOD(LockRead) (MediaState_T *aState); … … 142 142 virtual Utf8Str name(); 143 143 144 virtual HRESULT setLocation ( constBSTR aLocation);144 virtual HRESULT setLocation (CBSTR aLocation); 145 145 virtual HRESULT queryInfo(); 146 146 … … 222 222 223 223 // protected initializer/uninitializer for internal purposes only 224 HRESULT protectedInit (VirtualBox *aVirtualBox, constBSTR aLocation,224 HRESULT protectedInit (VirtualBox *aVirtualBox, CBSTR aLocation, 225 225 const Guid &aId); 226 226 HRESULT protectedInit (VirtualBox *aVirtualBox, const settings::Key &aImageNode); … … 265 265 // public initializer/uninitializer for internal purposes only 266 266 267 HRESULT init (VirtualBox *aParent, constBSTR aFilePath,267 HRESULT init (VirtualBox *aParent, CBSTR aFilePath, 268 268 const Guid &aId) 269 269 { … … 318 318 // public initializer/uninitializer for internal purposes only 319 319 320 HRESULT init (VirtualBox *aParent, constBSTR aFilePath,320 HRESULT init (VirtualBox *aParent, CBSTR aFilePath, 321 321 const Guid &aId) 322 322 { -
trunk/src/VBox/Main/include/NetworkAdapterImpl.h
r14949 r15051 122 122 STDMETHOD(COMSETTER(Enabled)) (BOOL aEnabled); 123 123 STDMETHOD(COMGETTER(MACAddress)) (BSTR *aMACAddress); 124 STDMETHOD(COMSETTER(MACAddress)) (IN PTRBSTR aMACAddress);124 STDMETHOD(COMSETTER(MACAddress)) (IN_BSTR aMACAddress); 125 125 STDMETHOD(COMGETTER(AttachmentType)) (NetworkAttachmentType_T *aAttachmentType); 126 126 STDMETHOD(COMGETTER(HostInterface)) (BSTR *aHostInterface); 127 STDMETHOD(COMSETTER(HostInterface)) (IN PTRBSTR aHostInterface);127 STDMETHOD(COMSETTER(HostInterface)) (IN_BSTR aHostInterface); 128 128 #ifndef RT_OS_WINDOWS /** @todo ifdef VBOX_WITH_UNIXY_TAP_NETWORKING: need to find a way to exclude this in the xidl... */ 129 129 STDMETHOD(COMGETTER(TAPFileDescriptor)) (LONG *aTAPFileDescriptor); 130 130 STDMETHOD(COMSETTER(TAPFileDescriptor)) (LONG aTAPFileDescriptor); 131 131 STDMETHOD(COMGETTER(TAPSetupApplication)) (BSTR *aTAPSetupApplication); 132 STDMETHOD(COMSETTER(TAPSetupApplication)) (IN PTRBSTR aTAPSetupApplication);132 STDMETHOD(COMSETTER(TAPSetupApplication)) (IN_BSTR aTAPSetupApplication); 133 133 STDMETHOD(COMGETTER(TAPTerminateApplication)) (BSTR *aTAPTerminateApplication); 134 STDMETHOD(COMSETTER(TAPTerminateApplication)) (IN PTRBSTR aTAPTerminateApplication);134 STDMETHOD(COMSETTER(TAPTerminateApplication)) (IN_BSTR aTAPTerminateApplication); 135 135 #endif 136 136 STDMETHOD(COMGETTER(InternalNetwork)) (BSTR *aInternalNetwork); 137 STDMETHOD(COMSETTER(InternalNetwork)) (IN PTRBSTR aInternalNetwork);137 STDMETHOD(COMSETTER(InternalNetwork)) (IN_BSTR aInternalNetwork); 138 138 STDMETHOD(COMGETTER(NATNetwork)) (BSTR *aNATNetwork); 139 STDMETHOD(COMSETTER(NATNetwork)) (IN PTRBSTR aNATNetwork);139 STDMETHOD(COMSETTER(NATNetwork)) (IN_BSTR aNATNetwork); 140 140 STDMETHOD(COMGETTER(CableConnected)) (BOOL *aConnected); 141 141 STDMETHOD(COMSETTER(CableConnected)) (BOOL aConnected); … … 145 145 STDMETHOD(COMSETTER(LineSpeed)) (ULONG aSpeed); 146 146 STDMETHOD(COMGETTER(TraceFile)) (BSTR *aTraceFile); 147 STDMETHOD(COMSETTER(TraceFile)) (IN PTRBSTR aTraceFile);147 STDMETHOD(COMSETTER(TraceFile)) (IN_BSTR aTraceFile); 148 148 149 149 // INetworkAdapter methods -
trunk/src/VBox/Main/include/ParallelPortImpl.h
r14949 r15051 95 95 STDMETHOD(COMSETTER(IOBase)) (ULONG aIOBase); 96 96 STDMETHOD(COMGETTER(Path)) (BSTR *aPath); 97 STDMETHOD(COMSETTER(Path)) (IN PTRBSTR aPath);97 STDMETHOD(COMSETTER(Path)) (IN_BSTR aPath); 98 98 99 99 // public methods only for internal purposes … … 116 116 private: 117 117 118 HRESULT checkSetPath ( constBSTR aPath);118 HRESULT checkSetPath (CBSTR aPath); 119 119 120 120 const ComObjPtr <Machine, ComWeakRef> mParent; -
trunk/src/VBox/Main/include/Performance.h
r14949 r15051 386 386 { 387 387 public: 388 Filter(ComSafeArrayIn(IN PTRBSTR, metricNames),388 Filter(ComSafeArrayIn(IN_BSTR, metricNames), 389 389 ComSafeArrayIn(IUnknown * , objects)); 390 390 static bool patternMatch(const char *pszPat, const char *pszName, … … 392 392 bool match(const ComPtr<IUnknown> object, const std::string &name) const; 393 393 private: 394 void init(ComSafeArrayIn(IN PTRBSTR, metricNames),394 void init(ComSafeArrayIn(IN_BSTR, metricNames), 395 395 ComSafeArrayIn(IUnknown * , objects)); 396 396 -
trunk/src/VBox/Main/include/PerformanceImpl.h
r14949 r15051 143 143 144 144 // IPerformanceCollector methods 145 STDMETHOD(GetMetrics) (ComSafeArrayIn (IN PTRBSTR, metricNames),145 STDMETHOD(GetMetrics) (ComSafeArrayIn (IN_BSTR, metricNames), 146 146 ComSafeArrayIn (IUnknown *, objects), 147 147 ComSafeArrayOut (IPerformanceMetric *, outMetrics)); 148 STDMETHOD(SetupMetrics) (ComSafeArrayIn (IN PTRBSTR, metricNames),148 STDMETHOD(SetupMetrics) (ComSafeArrayIn (IN_BSTR, metricNames), 149 149 ComSafeArrayIn (IUnknown *, objects), 150 150 ULONG aPeriod, ULONG aCount, 151 151 ComSafeArrayOut (IPerformanceMetric *, 152 152 outMetrics)); 153 STDMETHOD(EnableMetrics) (ComSafeArrayIn (IN PTRBSTR, metricNames),153 STDMETHOD(EnableMetrics) (ComSafeArrayIn (IN_BSTR, metricNames), 154 154 ComSafeArrayIn (IUnknown *, objects), 155 155 ComSafeArrayOut (IPerformanceMetric *, 156 156 outMetrics)); 157 STDMETHOD(DisableMetrics) (ComSafeArrayIn (IN PTRBSTR, metricNames),157 STDMETHOD(DisableMetrics) (ComSafeArrayIn (IN_BSTR, metricNames), 158 158 ComSafeArrayIn (IUnknown *, objects), 159 159 ComSafeArrayOut (IPerformanceMetric *, 160 160 outMetrics)); 161 STDMETHOD(QueryMetricsData) (ComSafeArrayIn (IN PTRBSTR, metricNames),161 STDMETHOD(QueryMetricsData) (ComSafeArrayIn (IN_BSTR, metricNames), 162 162 ComSafeArrayIn (IUnknown *, objects), 163 163 ComSafeArrayOut (BSTR, outMetricNames), -
trunk/src/VBox/Main/include/ProgressImpl.h
r14949 r15051 60 60 #endif 61 61 IUnknown *aInitiator, 62 const BSTR aDescription, GUIDPARAMOUTaId = NULL);62 CBSTR aDescription, OUT_GUID aId = NULL); 63 63 HRESULT protectedInit (AutoInitSpan &aAutoInitSpan); 64 64 void protectedUninit (AutoUninitSpan &aAutoUninitSpan); … … 67 67 68 68 // IProgress properties 69 STDMETHOD(COMGETTER(Id)) ( GUIDPARAMOUTaId);69 STDMETHOD(COMGETTER(Id)) (OUT_GUID aId); 70 70 STDMETHOD(COMGETTER(Description)) (BSTR *aDescription); 71 71 STDMETHOD(COMGETTER(Initiator)) (IUnknown **aInitiator); … … 154 154 #endif 155 155 IUnknown *aInitiator, 156 constBSTR aDescription, BOOL aCancelable,157 GUIDPARAMOUTaId = NULL)156 CBSTR aDescription, BOOL aCancelable, 157 OUT_GUID aId = NULL) 158 158 { 159 159 return init ( … … 169 169 #endif 170 170 IUnknown *aInitiator, 171 constBSTR aDescription, BOOL aCancelable,172 ULONG aOperationCount, constBSTR aOperationDescription,173 GUIDPARAMOUTaId = NULL);171 CBSTR aDescription, BOOL aCancelable, 172 ULONG aOperationCount, CBSTR aOperationDescription, 173 OUT_GUID aId = NULL); 174 174 175 175 HRESULT init (BOOL aCancelable, ULONG aOperationCount, 176 constBSTR aOperationDescription);176 CBSTR aOperationDescription); 177 177 178 178 void uninit(); … … 186 186 187 187 HRESULT notifyProgress (LONG aPercent); 188 HRESULT advanceOperation ( constBSTR aOperationDescription);188 HRESULT advanceOperation (CBSTR aOperationDescription); 189 189 190 190 HRESULT notifyComplete (HRESULT aResultCode); … … 271 271 #endif 272 272 IUnknown *aInitiator, 273 constBSTR aDescription,273 CBSTR aDescription, 274 274 IProgress *aProgress1, IProgress *aProgress2, 275 GUIDPARAMOUTaId = NULL);275 OUT_GUID aId = NULL); 276 276 277 277 /** … … 292 292 #endif 293 293 IUnknown *aInitiator, 294 constBSTR aDescription,294 CBSTR aDescription, 295 295 InputIterator aFirstProgress, InputIterator aLastProgress, 296 GUIDPARAMOUTaId = NULL)296 OUT_GUID aId = NULL) 297 297 { 298 298 /* Enclose the state transition NotReady->InInit->Ready */ … … 322 322 #endif 323 323 IUnknown *aInitiator, 324 const BSTR aDescription, GUIDPARAMOUTaId);324 CBSTR aDescription, OUT_GUID aId); 325 325 326 326 public: -
trunk/src/VBox/Main/include/RemoteUSBDeviceImpl.h
r14949 r15051 64 64 65 65 // IUSBDevice properties 66 STDMETHOD(COMGETTER(Id)) ( GUIDPARAMOUTaId);66 STDMETHOD(COMGETTER(Id)) (OUT_GUID aId); 67 67 STDMETHOD(COMGETTER(VendorId)) (USHORT *aVendorId); 68 68 STDMETHOD(COMGETTER(ProductId)) (USHORT *aProductId); … … 140 140 COM_DECL_READONLY_ENUM_AND_COLLECTION_EX_BEGIN (ComObjPtr <RemoteUSBDevice>, IHostUSBDevice, RemoteUSBDevice) 141 141 142 STDMETHOD(FindById) (IN PTR GUIDPARAMaId, IHostUSBDevice **aDevice)142 STDMETHOD(FindById) (IN_GUID aId, IHostUSBDevice **aDevice) 143 143 { 144 144 Guid idToFind = aId; … … 168 168 } 169 169 170 STDMETHOD(FindByAddress) (IN PTRBSTR aAddress, IHostUSBDevice **aDevice)170 STDMETHOD(FindByAddress) (IN_BSTR aAddress, IHostUSBDevice **aDevice) 171 171 { 172 172 if (!aAddress) -
trunk/src/VBox/Main/include/SerialPortImpl.h
r14949 r15051 104 104 STDMETHOD(COMSETTER(IOBase)) (ULONG aIOBase); 105 105 STDMETHOD(COMGETTER(Path)) (BSTR *aPath); 106 STDMETHOD(COMSETTER(Path)) (IN PTRBSTR aPath);106 STDMETHOD(COMSETTER(Path)) (IN_BSTR aPath); 107 107 STDMETHOD(COMGETTER(Server)) (BOOL *aServer); 108 108 STDMETHOD(COMSETTER(Server)) (BOOL aServer); … … 127 127 private: 128 128 129 HRESULT checkSetPath ( constBSTR aPath);129 HRESULT checkSetPath (CBSTR aPath); 130 130 131 131 const ComObjPtr <Machine, ComWeakRef> mParent; -
trunk/src/VBox/Main/include/SessionImpl.h
r14949 r15051 104 104 STDMETHOD(OnSharedFolderChange) (BOOL aGlobal); 105 105 STDMETHOD(OnUSBDeviceAttach) (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs); 106 STDMETHOD(OnUSBDeviceDetach) (IN PTR GUIDPARAMaId, IVirtualBoxErrorInfo *aError);106 STDMETHOD(OnUSBDeviceDetach) (IN_GUID aId, IVirtualBoxErrorInfo *aError); 107 107 STDMETHOD(OnShowWindow) (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId); 108 STDMETHOD(AccessGuestProperty) (IN PTR BSTR aName, INPTR BSTR aValue, INPTRBSTR aFlags,108 STDMETHOD(AccessGuestProperty) (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags, 109 109 BOOL aIsSetter, BSTR *aRetValue, ULONG64 *aRetTimestamp, BSTR *aRetFlags); 110 STDMETHOD(EnumerateGuestProperties) (IN PTRBSTR aPatterns,110 STDMETHOD(EnumerateGuestProperties) (IN_BSTR aPatterns, 111 111 ComSafeArrayOut(BSTR, aNames), 112 112 ComSafeArrayOut(BSTR, aValues), -
trunk/src/VBox/Main/include/SharedFolderImpl.h
r14949 r15051 67 67 68 68 // public initializer/uninitializer for internal purposes only 69 HRESULT init (Machine *aMachine, const BSTR aName, constBSTR aHostPath, BOOL aWritable);69 HRESULT init (Machine *aMachine, CBSTR aName, CBSTR aHostPath, BOOL aWritable); 70 70 HRESULT initCopy (Machine *aMachine, SharedFolder *aThat); 71 HRESULT init (Console *aConsole, const BSTR aName, constBSTR aHostPath, BOOL aWritable);72 HRESULT init (VirtualBox *aVirtualBox, const BSTR aName, constBSTR aHostPath, BOOL aWritable);71 HRESULT init (Console *aConsole, CBSTR aName, CBSTR aHostPath, BOOL aWritable); 72 HRESULT init (VirtualBox *aVirtualBox, CBSTR aName, CBSTR aHostPath, BOOL aWritable); 73 73 void uninit(); 74 74 … … 95 95 96 96 HRESULT protectedInit (VirtualBoxBaseWithChildrenNEXT *aParent, 97 const BSTR aName, constBSTR aHostPath, BOOL aWritable);97 CBSTR aName, CBSTR aHostPath, BOOL aWritable); 98 98 99 99 private: … … 111 111 COM_DECL_READONLY_ENUM_AND_COLLECTION_BEGIN (SharedFolder) 112 112 113 STDMETHOD(FindByName) (IN PTRBSTR aName, ISharedFolder **aSharedFolder)113 STDMETHOD(FindByName) (IN_BSTR aName, ISharedFolder **aSharedFolder) 114 114 { 115 115 if (!aName) -
trunk/src/VBox/Main/include/SnapshotImpl.h
r14949 r15051 70 70 71 71 // public initializer/uninitializer only for internal purposes 72 HRESULT init (const Guid &aId, IN PTR BSTR aName, INPTRBSTR aDescription,72 HRESULT init (const Guid &aId, IN_BSTR aName, IN_BSTR aDescription, 73 73 RTTIMESPEC aTimeStamp, SnapshotMachine *aMachine, 74 74 Snapshot *aParent); … … 78 78 79 79 // ISnapshot properties 80 STDMETHOD(COMGETTER(Id)) ( GUIDPARAMOUTaId);80 STDMETHOD(COMGETTER(Id)) (OUT_GUID aId); 81 81 STDMETHOD(COMGETTER(Name)) (BSTR *aName); 82 STDMETHOD(COMSETTER(Name)) (IN PTRBSTR aName);82 STDMETHOD(COMSETTER(Name)) (IN_BSTR aName); 83 83 STDMETHOD(COMGETTER(Description)) (BSTR *aDescription); 84 STDMETHOD(COMSETTER(Description)) (IN PTRBSTR aDescription);84 STDMETHOD(COMSETTER(Description)) (IN_BSTR aDescription); 85 85 STDMETHOD(COMGETTER(TimeStamp)) (LONG64 *aTimeStamp); 86 86 STDMETHOD(COMGETTER(Online)) (BOOL *aOnline); … … 110 110 111 111 ULONG descendantCount(); 112 ComObjPtr <Snapshot> findChildOrSelf (IN PTR GUIDPARAMaId);113 ComObjPtr <Snapshot> findChildOrSelf (IN PTRBSTR aName);112 ComObjPtr <Snapshot> findChildOrSelf (IN_GUID aId); 113 ComObjPtr <Snapshot> findChildOrSelf (IN_BSTR aName); 114 114 115 115 void updateSavedStatePaths (const char *aOldPath, const char *aNewPath); -
trunk/src/VBox/Main/include/SystemPropertiesImpl.h
r14949 r15051 76 76 STDMETHOD(COMGETTER(MaxBootPosition) (ULONG *aMaxBootPosition)); 77 77 STDMETHOD(COMGETTER(DefaultMachineFolder)) (BSTR *aDefaultMachineFolder); 78 STDMETHOD(COMSETTER(DefaultMachineFolder)) (IN PTRBSTR aDefaultMachineFolder);78 STDMETHOD(COMSETTER(DefaultMachineFolder)) (IN_BSTR aDefaultMachineFolder); 79 79 STDMETHOD(COMGETTER(DefaultHardDiskFolder)) (BSTR *aDefaultHardDiskFolder); 80 STDMETHOD(COMSETTER(DefaultHardDiskFolder)) (IN PTRBSTR aDefaultHardDiskFolder);80 STDMETHOD(COMSETTER(DefaultHardDiskFolder)) (IN_BSTR aDefaultHardDiskFolder); 81 81 STDMETHOD(COMGETTER(HardDiskFormats)) (ComSafeArrayOut (IHardDiskFormat *, aHardDiskFormats)); 82 82 STDMETHOD(COMGETTER(DefaultHardDiskFormat)) (BSTR *aDefaultHardDiskFolder); 83 STDMETHOD(COMSETTER(DefaultHardDiskFormat)) (IN PTRBSTR aDefaultHardDiskFolder);83 STDMETHOD(COMSETTER(DefaultHardDiskFormat)) (IN_BSTR aDefaultHardDiskFolder); 84 84 STDMETHOD(COMGETTER(RemoteDisplayAuthLibrary)) (BSTR *aRemoteDisplayAuthLibrary); 85 STDMETHOD(COMSETTER(RemoteDisplayAuthLibrary)) (IN PTRBSTR aRemoteDisplayAuthLibrary);85 STDMETHOD(COMSETTER(RemoteDisplayAuthLibrary)) (IN_BSTR aRemoteDisplayAuthLibrary); 86 86 STDMETHOD(COMGETTER(WebServiceAuthLibrary)) (BSTR *aWebServiceAuthLibrary); 87 STDMETHOD(COMSETTER(WebServiceAuthLibrary)) (IN PTRBSTR aWebServiceAuthLibrary);87 STDMETHOD(COMSETTER(WebServiceAuthLibrary)) (IN_BSTR aWebServiceAuthLibrary); 88 88 STDMETHOD(COMGETTER(HWVirtExEnabled)) (BOOL *enabled); 89 89 STDMETHOD(COMSETTER(HWVirtExEnabled)) (BOOL enabled); … … 96 96 HRESULT saveSettings (settings::Key &aGlobal); 97 97 98 ComObjPtr <HardDiskFormat> hardDiskFormat ( constBSTR aFormat);98 ComObjPtr <HardDiskFormat> hardDiskFormat (CBSTR aFormat); 99 99 100 100 // public methods for internal purposes only … … 120 120 typedef std::list <ComObjPtr <HardDiskFormat> > HardDiskFormatList; 121 121 122 HRESULT setDefaultMachineFolder ( constBSTR aPath);123 HRESULT setDefaultHardDiskFolder ( constBSTR aPath);124 HRESULT setDefaultHardDiskFormat ( constBSTR aFormat);122 HRESULT setDefaultMachineFolder (CBSTR aPath); 123 HRESULT setDefaultHardDiskFolder (CBSTR aPath); 124 HRESULT setDefaultHardDiskFormat (CBSTR aFormat); 125 125 126 HRESULT setRemoteDisplayAuthLibrary ( constBSTR aPath);127 HRESULT setWebServiceAuthLibrary ( constBSTR aPath);126 HRESULT setRemoteDisplayAuthLibrary (CBSTR aPath); 127 HRESULT setWebServiceAuthLibrary (CBSTR aPath); 128 128 129 129 const ComObjPtr <VirtualBox, ComWeakRef> mParent; -
trunk/src/VBox/Main/include/USBControllerImpl.h
r14949 r15051 102 102 103 103 // IUSBController methods 104 STDMETHOD(CreateDeviceFilter) (IN PTRBSTR aName, IUSBDeviceFilter **aFilter);104 STDMETHOD(CreateDeviceFilter) (IN_BSTR aName, IUSBDeviceFilter **aFilter); 105 105 STDMETHOD(InsertDeviceFilter) (ULONG aPosition, IUSBDeviceFilter *aFilter); 106 106 STDMETHOD(RemoveDeviceFilter) (ULONG aPosition, IUSBDeviceFilter **aFilter); -
trunk/src/VBox/Main/include/USBDeviceImpl.h
r14949 r15051 64 64 65 65 // IUSBDevice properties 66 STDMETHOD(COMGETTER(Id))( GUIDPARAMOUTaId);66 STDMETHOD(COMGETTER(Id))(OUT_GUID aId); 67 67 STDMETHOD(COMGETTER(VendorId))(USHORT *aVendorId); 68 68 STDMETHOD(COMGETTER(ProductId))(USHORT *aProductId); … … 123 123 COM_DECL_READONLY_ENUM_AND_COLLECTION_EX_BEGIN (ComObjPtr <OUSBDevice>, IUSBDevice, OUSBDevice) 124 124 125 STDMETHOD(FindById) (IN PTR GUIDPARAMaId, IUSBDevice **aDevice)125 STDMETHOD(FindById) (IN_GUID aId, IUSBDevice **aDevice) 126 126 { 127 127 Guid idToFind = aId; … … 153 153 } 154 154 155 STDMETHOD(FindByAddress) (IN PTRBSTR aAddress, IUSBDevice **aDevice)155 STDMETHOD(FindByAddress) (IN_BSTR aAddress, IUSBDevice **aDevice) 156 156 { 157 157 if (!aAddress) -
trunk/src/VBox/Main/include/VRDPServerImpl.h
r14949 r15051 92 92 STDMETHOD(COMSETTER(Port)) (ULONG aPort); 93 93 STDMETHOD(COMGETTER(NetAddress)) (BSTR *aAddress); 94 STDMETHOD(COMSETTER(NetAddress)) (IN PTRBSTR aAddress);94 STDMETHOD(COMSETTER(NetAddress)) (IN_BSTR aAddress); 95 95 STDMETHOD(COMGETTER(AuthType)) (VRDPAuthType_T *aType); 96 96 STDMETHOD(COMSETTER(AuthType)) (VRDPAuthType_T aType); -
trunk/src/VBox/Main/include/VirtualBoxErrorInfoImpl.h
r14972 r15051 70 70 // public initializer/uninitializer for internal purposes only 71 71 HRESULT init (HRESULT aResultCode, const GUID &aIID, 72 const BSTR aComponent, constBSTR aText,72 CBSTR aComponent, CBSTR aText, 73 73 IVirtualBoxErrorInfo *aNext = NULL); 74 74 75 75 // IVirtualBoxErrorInfo properties 76 76 STDMETHOD(COMGETTER(ResultCode)) (HRESULT *aResultCode); 77 STDMETHOD(COMGETTER(InterfaceID)) ( GUIDPARAMOUTaIID);77 STDMETHOD(COMGETTER(InterfaceID)) (OUT_GUID aIID); 78 78 STDMETHOD(COMGETTER(Component)) (BSTR *aComponent); 79 79 STDMETHOD(COMGETTER(Text)) (BSTR *aText); -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r14949 r15051 137 137 /* IVirtualBox methods */ 138 138 139 STDMETHOD(CreateMachine) (IN PTR BSTR aName, INPTR BSTR aOsTypeId, INPTRBSTR aBaseFolder,140 IN PTR GUIDPARAMaId, IMachine **aMachine);141 STDMETHOD(CreateLegacyMachine) (IN PTR BSTR aName, INPTR BSTR aOsTypeId, INPTRBSTR aSettingsFile,142 IN PTR GUIDPARAMaId, IMachine **aMachine);143 STDMETHOD(OpenMachine) (IN PTRBSTR aSettingsFile, IMachine **aMachine);139 STDMETHOD(CreateMachine) (IN_BSTR aName, IN_BSTR aOsTypeId, IN_BSTR aBaseFolder, 140 IN_GUID aId, IMachine **aMachine); 141 STDMETHOD(CreateLegacyMachine) (IN_BSTR aName, IN_BSTR aOsTypeId, IN_BSTR aSettingsFile, 142 IN_GUID aId, IMachine **aMachine); 143 STDMETHOD(OpenMachine) (IN_BSTR aSettingsFile, IMachine **aMachine); 144 144 STDMETHOD(RegisterMachine) (IMachine *aMachine); 145 STDMETHOD(GetMachine) (IN PTR GUIDPARAMaId, IMachine **aMachine);146 STDMETHOD(FindMachine) (IN PTRBSTR aName, IMachine **aMachine);147 STDMETHOD(UnregisterMachine) (IN PTR GUIDPARAMaId, IMachine **aMachine);148 149 STDMETHOD(CreateHardDisk2) (IN PTR BSTR aFormat, INPTRBSTR aLocation,145 STDMETHOD(GetMachine) (IN_GUID aId, IMachine **aMachine); 146 STDMETHOD(FindMachine) (IN_BSTR aName, IMachine **aMachine); 147 STDMETHOD(UnregisterMachine) (IN_GUID aId, IMachine **aMachine); 148 149 STDMETHOD(CreateHardDisk2) (IN_BSTR aFormat, IN_BSTR aLocation, 150 150 IHardDisk2 **aHardDisk); 151 STDMETHOD(OpenHardDisk2) (IN PTRBSTR aLocation, IHardDisk2 **aHardDisk);152 STDMETHOD(GetHardDisk2) (IN PTR GUIDPARAMaId, IHardDisk2 **aHardDisk);153 STDMETHOD(FindHardDisk2) (IN PTRBSTR aLocation, IHardDisk2 **aHardDisk);154 155 STDMETHOD(OpenDVDImage) (IN PTR BSTR aLocation, INPTR GUIDPARAMaId,151 STDMETHOD(OpenHardDisk2) (IN_BSTR aLocation, IHardDisk2 **aHardDisk); 152 STDMETHOD(GetHardDisk2) (IN_GUID aId, IHardDisk2 **aHardDisk); 153 STDMETHOD(FindHardDisk2) (IN_BSTR aLocation, IHardDisk2 **aHardDisk); 154 155 STDMETHOD(OpenDVDImage) (IN_BSTR aLocation, IN_GUID aId, 156 156 IDVDImage2 **aDVDImage); 157 STDMETHOD(GetDVDImage) (IN PTR GUIDPARAMaId, IDVDImage2 **aDVDImage);158 STDMETHOD(FindDVDImage) (IN PTRBSTR aLocation, IDVDImage2 **aDVDImage);159 160 STDMETHOD(OpenFloppyImage) (IN PTR BSTR aLocation, INPTR GUIDPARAMaId,157 STDMETHOD(GetDVDImage) (IN_GUID aId, IDVDImage2 **aDVDImage); 158 STDMETHOD(FindDVDImage) (IN_BSTR aLocation, IDVDImage2 **aDVDImage); 159 160 STDMETHOD(OpenFloppyImage) (IN_BSTR aLocation, IN_GUID aId, 161 161 IFloppyImage2 **aFloppyImage); 162 STDMETHOD(GetFloppyImage) (IN PTR GUIDPARAMaId, IFloppyImage2 **aFloppyImage);163 STDMETHOD(FindFloppyImage) (IN PTRBSTR aLocation, IFloppyImage2 **aFloppyImage);164 165 STDMETHOD(GetGuestOSType) (IN PTRBSTR aId, IGuestOSType **aType);166 STDMETHOD(CreateSharedFolder) (IN PTR BSTR aName, INPTRBSTR aHostPath, BOOL aWritable);167 STDMETHOD(RemoveSharedFolder) (IN PTRBSTR aName);168 STDMETHOD(GetNextExtraDataKey) (IN PTRBSTR aKey, BSTR *aNextKey, BSTR *aNextValue);169 STDMETHOD(GetExtraData) (IN PTRBSTR aKey, BSTR *aValue);170 STDMETHOD(SetExtraData) (IN PTR BSTR aKey, INPTRBSTR aValue);171 STDMETHOD(OpenSession) (ISession *aSession, IN PTR GUIDPARAMaMachineId);172 STDMETHOD(OpenRemoteSession) (ISession *aSession, IN PTR GUIDPARAMaMachineId,173 IN PTR BSTR aType, INPTRBSTR aEnvironment,162 STDMETHOD(GetFloppyImage) (IN_GUID aId, IFloppyImage2 **aFloppyImage); 163 STDMETHOD(FindFloppyImage) (IN_BSTR aLocation, IFloppyImage2 **aFloppyImage); 164 165 STDMETHOD(GetGuestOSType) (IN_BSTR aId, IGuestOSType **aType); 166 STDMETHOD(CreateSharedFolder) (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable); 167 STDMETHOD(RemoveSharedFolder) (IN_BSTR aName); 168 STDMETHOD(GetNextExtraDataKey) (IN_BSTR aKey, BSTR *aNextKey, BSTR *aNextValue); 169 STDMETHOD(GetExtraData) (IN_BSTR aKey, BSTR *aValue); 170 STDMETHOD(SetExtraData) (IN_BSTR aKey, IN_BSTR aValue); 171 STDMETHOD(OpenSession) (ISession *aSession, IN_GUID aMachineId); 172 STDMETHOD(OpenRemoteSession) (ISession *aSession, IN_GUID aMachineId, 173 IN_BSTR aType, IN_BSTR aEnvironment, 174 174 IProgress **aProgress); 175 STDMETHOD(OpenExistingSession) (ISession *aSession, IN PTR GUIDPARAMaMachineId);175 STDMETHOD(OpenExistingSession) (ISession *aSession, IN_GUID aMachineId); 176 176 177 177 STDMETHOD(RegisterCallback) (IVirtualBoxCallback *aCallback); 178 178 STDMETHOD(UnregisterCallback) (IVirtualBoxCallback *aCallback); 179 179 180 STDMETHOD(WaitForPropertyChange) (IN PTRBSTR aWhat, ULONG aTimeout,180 STDMETHOD(WaitForPropertyChange) (IN_BSTR aWhat, ULONG aTimeout, 181 181 BSTR *aChanged, BSTR *aValues); 182 182 … … 189 189 190 190 HRESULT addProgress (IProgress *aProgress); 191 HRESULT removeProgress (IN PTR GUIDPARAMaId);191 HRESULT removeProgress (IN_GUID aId); 192 192 193 193 #ifdef RT_OS_WINDOWS … … 204 204 void onMachineStateChange (const Guid &aId, MachineState_T aState); 205 205 void onMachineDataChange (const Guid &aId); 206 BOOL onExtraDataCanChange(const Guid &aId, IN PTR BSTR aKey, INPTRBSTR aValue,206 BOOL onExtraDataCanChange(const Guid &aId, IN_BSTR aKey, IN_BSTR aValue, 207 207 Bstr &aError); 208 void onExtraDataChange(const Guid &aId, IN PTR BSTR aKey, INPTRBSTR aValue);208 void onExtraDataChange(const Guid &aId, IN_BSTR aKey, IN_BSTR aValue); 209 209 void onMachineRegistered (const Guid &aId, BOOL aRegistered); 210 210 void onSessionStateChange (const Guid &aId, SessionState_T aState); … … 213 213 void onSnapshotDiscarded (const Guid &aMachineId, const Guid &aSnapshotId); 214 214 void onSnapshotChange (const Guid &aMachineId, const Guid &aSnapshotId); 215 void onGuestPropertyChange (const Guid &aMachineId, IN PTR BSTR aName, INPTRBSTR aValue,216 IN PTRBSTR aFlags);215 void onGuestPropertyChange (const Guid &aMachineId, IN_BSTR aName, IN_BSTR aValue, 216 IN_BSTR aFlags); 217 217 218 218 ComObjPtr <GuestOSType> getUnknownOSType(); … … 234 234 ComObjPtr <Machine> *machine = NULL); 235 235 236 HRESULT findHardDisk2 (const Guid *aId, constBSTR aLocation,236 HRESULT findHardDisk2 (const Guid *aId, CBSTR aLocation, 237 237 bool aSetError, ComObjPtr <HardDisk2> *aHardDisk = NULL); 238 HRESULT findDVDImage2 (const Guid *aId, constBSTR aLocation,238 HRESULT findDVDImage2 (const Guid *aId, CBSTR aLocation, 239 239 bool aSetError, ComObjPtr <DVDImage2> *aImage = NULL); 240 HRESULT findFloppyImage2 (const Guid *aId, constBSTR aLocation,240 HRESULT findFloppyImage2 (const Guid *aId, CBSTR aLocation, 241 241 bool aSetError, ComObjPtr <FloppyImage2> *aImage = NULL); 242 242
Note:
See TracChangeset
for help on using the changeset viewer.