VirtualBox

Changeset 15051 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Dec 5, 2008 5:20:00 PM (16 years ago)
Author:
vboxsync
Message:

Main: Cleaned up the long standing const BSTR = const (OLECHAR *) on WIn32 vs (const PRunichar) * on XPCOM clash. Cleaned up BSTR/GUID macros (IN_BSTR replaces INPTR BSTR, IN_GUID replaces INPTR GUIDPARAM, OUT_GUID replaces GUIDPARAMOUT).

Location:
trunk/src/VBox/Main/include
Files:
31 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/BIOSSettingsImpl.h

    r14949 r15051  
    107107    STDMETHOD(COMSETTER(LogoDisplayTime))(ULONG displayTime);
    108108    STDMETHOD(COMGETTER(LogoImagePath))(BSTR *imagePath);
    109     STDMETHOD(COMSETTER(LogoImagePath))(INPTR BSTR imagePath);
     109    STDMETHOD(COMSETTER(LogoImagePath))(IN_BSTR imagePath);
    110110    STDMETHOD(COMGETTER(BootMenuMode))(BIOSBootMenuMode_T *bootMenuMode);
    111111    STDMETHOD(COMSETTER(BootMenuMode))(BIOSBootMenuMode_T bootMenuMode);
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r14949 r15051  
    141141    STDMETHOD(GetGuestEnteredACPIMode)(BOOL *aEntered);
    142142    STDMETHOD(SaveState) (IProgress **aProgress);
    143     STDMETHOD(AdoptSavedState) (INPTR BSTR aSavedStateFile);
     143    STDMETHOD(AdoptSavedState) (IN_BSTR aSavedStateFile);
    144144    STDMETHOD(DiscardSavedState)();
    145145    STDMETHOD(GetDeviceActivity) (DeviceType_T aDeviceType,
    146146                                 DeviceActivity_T *aDeviceActivity);
    147     STDMETHOD(AttachUSBDevice) (INPTR GUIDPARAM aId);
    148     STDMETHOD(DetachUSBDevice) (INPTR GUIDPARAM aId, IUSBDevice **aDevice);
    149     STDMETHOD(CreateSharedFolder) (INPTR BSTR aName, INPTR BSTR aHostPath, BOOL aWritable);
    150     STDMETHOD(RemoveSharedFolder) (INPTR BSTR aName);
    151     STDMETHOD(TakeSnapshot) (INPTR BSTR aName, INPTR BSTR 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,
    152152                             IProgress **aProgress);
    153     STDMETHOD(DiscardSnapshot) (INPTR GUIDPARAM aId, IProgress **aProgress);
     153    STDMETHOD(DiscardSnapshot) (IN_GUID aId, IProgress **aProgress);
    154154    STDMETHOD(DiscardCurrentState) (IProgress **aProgress);
    155155    STDMETHOD(DiscardCurrentSnapshotAndState) (IProgress **aProgress);
     
    189189    HRESULT onSharedFolderChange (BOOL aGlobal);
    190190    HRESULT onUSBDeviceAttach (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs);
    191     HRESULT onUSBDeviceDetach (INPTR GUIDPARAM aId, IVirtualBoxErrorInfo *aError);
    192     HRESULT getGuestProperty (INPTR BSTR aKey, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags);
    193     HRESULT setGuestProperty (INPTR BSTR aKey, INPTR BSTR aValue, INPTR BSTR aFlags);
    194     HRESULT enumerateGuestProperties (INPTR BSTR 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));
    195195    VMMDev *getVMMDev() { return mVMMDev; }
    196196    AudioSniffer *getAudioSniffer () { return mAudioSniffer; }
     
    218218    void onUSBDeviceStateChange (IUSBDevice *aDevice, bool aAttached,
    219219                                 IVirtualBoxErrorInfo *aError);
    220     void onRuntimeError (BOOL aFatal, INPTR BSTR aErrorID, INPTR BSTR aMessage);
     220    void onRuntimeError (BOOL aFatal, IN_BSTR aErrorID, IN_BSTR aMessage);
    221221    HRESULT onShowWindow (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId);
    222222
     
    421421    }
    422422
    423     HRESULT findSharedFolder (const BSTR aName,
     423    HRESULT findSharedFolder (CBSTR aName,
    424424                              ComObjPtr <SharedFolder> &aSharedFolder,
    425425                              bool aSetError = false);
    426426
    427427    HRESULT fetchSharedFolders (BOOL aGlobal);
    428     bool findOtherSharedFolder (INPTR BSTR aName,
     428    bool findOtherSharedFolder (IN_BSTR aName,
    429429                                SharedFolderDataMap::const_iterator &aIt);
    430430
    431     HRESULT createSharedFolder (INPTR BSTR aName, SharedFolderData aData);
    432     HRESULT removeSharedFolder (INPTR BSTR aName);
     431    HRESULT createSharedFolder (CBSTR aName, SharedFolderData aData);
     432    HRESULT removeSharedFolder (CBSTR aName);
    433433
    434434    static DECLCALLBACK(int) configConstructor(PVM pVM, void *pvConsole);
     
    494494    static DECLCALLBACK(int)    doGuestPropNotification (void *pvExtension, uint32_t,
    495495                                                         void *pvParms, uint32_t cbParms);
    496     HRESULT doEnumerateGuestProperties (INPTR BSTR aPatterns,
     496    HRESULT doEnumerateGuestProperties (CBSTR aPatterns,
    497497                                        ComSafeArrayOut(BSTR, aNames),
    498498                                        ComSafeArrayOut(BSTR, aValues),
  • trunk/src/VBox/Main/include/DVDDriveImpl.h

    r14949 r15051  
    9191
    9292    // IDVDDrive methods
    93     STDMETHOD(MountImage) (INPTR GUIDPARAM aImageId);
     93    STDMETHOD(MountImage) (IN_GUID aImageId);
    9494    STDMETHOD(CaptureHostDrive) (IHostDVDDrive *aHostDVDDrive);
    9595    STDMETHOD(Unmount)();
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r14949 r15051  
    191191    }
    192192
    193     STDMETHOD(OnRuntimeError)(BOOL fatal, INPTR BSTR id, INPTR BSTR message)
     193    STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR id, IN_BSTR message)
    194194    {
    195195        return S_OK;
  • trunk/src/VBox/Main/include/FloppyDriveImpl.h

    r14949 r15051  
    9191
    9292    // IFloppyDrive methods
    93     STDMETHOD(MountImage) (INPTR GUIDPARAM aImageId);
     93    STDMETHOD(MountImage) (IN_GUID aImageId);
    9494    STDMETHOD(CaptureHostDrive) (IHostFloppyDrive *aHostFloppyDrive);
    9595    STDMETHOD(Unmount)();
  • trunk/src/VBox/Main/include/GuestImpl.h

    r14949 r15051  
    7070
    7171    // IGuest methods
    72     STDMETHOD(SetCredentials)(INPTR BSTR aUserName, INPTR BSTR aPassword,
    73                               INPTR BSTR aDomain, BOOL aAllowInteractiveLogon);
     72    STDMETHOD(SetCredentials)(IN_BSTR aUserName, IN_BSTR aPassword,
     73                              IN_BSTR aDomain, BOOL aAllowInteractiveLogon);
    7474    STDMETHOD(GetStatistic)(ULONG aCpuId, GuestStatisticType_T aStatistic, ULONG *aStatVal);
    7575
  • trunk/src/VBox/Main/include/HardDisk2Impl.h

    r15044 r15051  
    7777
    7878    // public initializer/uninitializer for internal purposes only
    79     HRESULT init (VirtualBox *aVirtualBox, const BSTR aFormat,
    80                   const BSTR aLocation);
     79    HRESULT init (VirtualBox *aVirtualBox, CBSTR aFormat,
     80                  CBSTR aLocation);
    8181    HRESULT init (VirtualBox *aVirtualBox,
    82                   const BSTR aLocation);
     82                  CBSTR aLocation);
    8383    HRESULT init (VirtualBox *aVirtualBox, HardDisk2 *aParent,
    8484                  const settings::Key &aNode);
     
    9999
    100100    // IHardDisk2 methods
    101     STDMETHOD(GetProperty) (INPTR BSTR aName, BSTR *aValue);
    102     STDMETHOD(SetProperty) (INPTR BSTR aName, INPTR BSTR aValue);
    103     STDMETHOD(GetProperties) (INPTR BSTR aNames,
     101    STDMETHOD(GetProperty) (IN_BSTR aName, BSTR *aValue);
     102    STDMETHOD(SetProperty) (IN_BSTR aName, IN_BSTR aValue);
     103    STDMETHOD(GetProperties) (IN_BSTR aNames,
    104104                              ComSafeArrayOut (BSTR, aReturnNames),
    105105                              ComSafeArrayOut (BSTR, aReturnValues));
    106     STDMETHOD(SetProperties) (ComSafeArrayIn (INPTR BSTR, aNames),
    107                               ComSafeArrayIn (INPTR BSTR, aValues));
     106    STDMETHOD(SetProperties) (ComSafeArrayIn (IN_BSTR, aNames),
     107                              ComSafeArrayIn (IN_BSTR, aValues));
    108108    STDMETHOD(CreateDynamicStorage) (ULONG64 aLogicalSize, IProgress **aProgress);
    109109    STDMETHOD(CreateFixedStorage) (ULONG64 aLogicalSize, IProgress **aProgress);
    110110    STDMETHOD(DeleteStorage) (IProgress **aProgress);
    111111    STDMETHOD(CreateDiffStorage) (IHardDisk2 *aTarget, IProgress **aProgress);
    112     STDMETHOD(MergeTo) (INPTR GUIDPARAM aTargetId, IProgress **aProgress);
     112    STDMETHOD(MergeTo) (IN_GUID aTargetId, IProgress **aProgress);
    113113    STDMETHOD(CloneTo) (IHardDisk2 *aTarget, IProgress **aProgress);
    114114    STDMETHOD(FlattenTo) (IHardDisk2 *aTarget, IProgress **aProgress);
     
    232232private:
    233233
    234     HRESULT setLocation (const BSTR aLocation);
    235     HRESULT setFormat (const BSTR aFormat);
     234    HRESULT setLocation (CBSTR aLocation);
     235    HRESULT setFormat (CBSTR aFormat);
    236236
    237237    HRESULT queryInfo();
  • trunk/src/VBox/Main/include/HostDVDDriveImpl.h

    r14949 r15051  
    5353
    5454    // public initializer/uninitializer for internal purposes only
    55     HRESULT init (INPTR BSTR aName, INPTR BSTR aUdi = NULL,
    56                   INPTR BSTR aDescription = NULL);
     55    HRESULT init (IN_BSTR aName, IN_BSTR aUdi = NULL,
     56                  IN_BSTR aDescription = NULL);
    5757    void uninit();
    5858
     
    8585COM_DECL_READONLY_ENUM_AND_COLLECTION_BEGIN (HostDVDDrive)
    8686
    87     STDMETHOD(FindByName) (INPTR BSTR aName, IHostDVDDrive **aDrive)
     87    STDMETHOD(FindByName) (IN_BSTR aName, IHostDVDDrive **aDrive)
    8888    {
    8989        if (!aName)
  • trunk/src/VBox/Main/include/HostFloppyDriveImpl.h

    r14949 r15051  
    5353
    5454    // public initializer/uninitializer for internal purposes only
    55     HRESULT init (INPTR BSTR aName, INPTR BSTR aUdi = NULL,
    56                   INPTR BSTR aDescription = NULL);
     55    HRESULT init (IN_BSTR aName, IN_BSTR aUdi = NULL,
     56                  IN_BSTR aDescription = NULL);
    5757    void uninit();
    5858
     
    8585COM_DECL_READONLY_ENUM_AND_COLLECTION_BEGIN (HostFloppyDrive)
    8686
    87     STDMETHOD(FindByName) (INPTR BSTR aName, IHostFloppyDrive **aDrive)
     87    STDMETHOD(FindByName) (IN_BSTR aName, IHostFloppyDrive **aDrive)
    8888    {
    8989        if (!aName)
  • trunk/src/VBox/Main/include/HostImpl.h

    r14991 r15051  
    9999    // IHost methods
    100100#ifdef RT_OS_WINDOWS
    101     STDMETHOD(CreateHostNetworkInterface) (INPTR BSTR aName,
     101    STDMETHOD(CreateHostNetworkInterface) (IN_BSTR aName,
    102102                                           IHostNetworkInterface **aHostNetworkInterface,
    103103                                           IProgress **aProgress);
    104     STDMETHOD(RemoveHostNetworkInterface) (INPTR GUIDPARAM aId,
     104    STDMETHOD(RemoveHostNetworkInterface) (IN_GUID aId,
    105105                                           IHostNetworkInterface **aHostNetworkInterface,
    106106                                           IProgress **aProgress);
    107107#endif
    108     STDMETHOD(CreateUSBDeviceFilter) (INPTR BSTR aName, IHostUSBDeviceFilter **aFilter);
     108    STDMETHOD(CreateUSBDeviceFilter) (IN_BSTR aName, IHostUSBDeviceFilter **aFilter);
    109109    STDMETHOD(InsertUSBDeviceFilter) (ULONG aPosition, IHostUSBDeviceFilter *aFilter);
    110110    STDMETHOD(RemoveUSBDeviceFilter) (ULONG aPosition, IHostUSBDeviceFilter **aFilter);
  • trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h

    r14949 r15051  
    5959    // IHostNetworkInterface properties
    6060    STDMETHOD(COMGETTER(Name)) (BSTR *aInterfaceName);
    61     STDMETHOD(COMGETTER(Id)) (GUIDPARAMOUT aGuid);
     61    STDMETHOD(COMGETTER(Id)) (OUT_GUID aGuid);
    6262
    6363    // for VirtualBoxSupportErrorInfoImpl
     
    7171COM_DECL_READONLY_ENUM_AND_COLLECTION_BEGIN (HostNetworkInterface)
    7272
    73     STDMETHOD(FindByName) (INPTR BSTR name, IHostNetworkInterface **networkInterface)
     73    STDMETHOD(FindByName) (IN_BSTR name, IHostNetworkInterface **networkInterface)
    7474    {
    7575        if (!name)
     
    9797    }
    9898
    99     STDMETHOD(FindById) (INPTR GUIDPARAM id, IHostNetworkInterface **networkInterface)
     99    STDMETHOD(FindById) (IN_GUID id, IHostNetworkInterface **networkInterface)
    100100    {
    101101        if (Guid(id).isEmpty())
  • trunk/src/VBox/Main/include/MachineDebuggerImpl.h

    r14949 r15051  
    8282
    8383    // IMachineDebugger methods
    84     STDMETHOD(ResetStats (INPTR BSTR aPattern));
    85     STDMETHOD(DumpStats (INPTR BSTR aPattern));
    86     STDMETHOD(GetStats (INPTR BSTR 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));
    8787
    8888
  • trunk/src/VBox/Main/include/MachineImpl.h

    r14949 r15051  
    458458
    459459    // public initializer/uninitializer for internal purposes only
    460     HRESULT init (VirtualBox *aParent, const BSTR aConfigFile,
    461                   InitMode aMode, const BSTR aName = NULL,
     460    HRESULT init (VirtualBox *aParent, CBSTR aConfigFile,
     461                  InitMode aMode, CBSTR aName = NULL,
    462462                  GuestOSType *aOsType = NULL,
    463463                  BOOL aNameSync = TRUE, const Guid *aId = NULL);
     
    469469    STDMETHOD(COMGETTER(AccessError)) (IVirtualBoxErrorInfo **aAccessError);
    470470    STDMETHOD(COMGETTER(Name))(BSTR *aName);
    471     STDMETHOD(COMSETTER(Name))(INPTR BSTR aName);
     471    STDMETHOD(COMSETTER(Name))(IN_BSTR aName);
    472472    STDMETHOD(COMGETTER(Description))(BSTR *aDescription);
    473     STDMETHOD(COMSETTER(Description))(INPTR BSTR aDescription);
    474     STDMETHOD(COMGETTER(Id))(GUIDPARAMOUT aId);
     473    STDMETHOD(COMSETTER(Description))(IN_BSTR aDescription);
     474    STDMETHOD(COMGETTER(Id))(OUT_GUID aId);
    475475    STDMETHOD(COMGETTER(OSTypeId)) (BSTR *aOSTypeId);
    476     STDMETHOD(COMSETTER(OSTypeId)) (INPTR BSTR aOSTypeId);
     476    STDMETHOD(COMSETTER(OSTypeId)) (IN_BSTR aOSTypeId);
    477477    STDMETHOD(COMGETTER(MemorySize))(ULONG *memorySize);
    478478    STDMETHOD(COMSETTER(MemorySize))(ULONG memorySize);
     
    499499    STDMETHOD(COMSETTER(PAEEnabled))(BOOL enabled);
    500500    STDMETHOD(COMGETTER(SnapshotFolder))(BSTR *aSavedStateFolder);
    501     STDMETHOD(COMSETTER(SnapshotFolder))(INPTR BSTR aSavedStateFolder);
     501    STDMETHOD(COMSETTER(SnapshotFolder))(IN_BSTR aSavedStateFolder);
    502502    STDMETHOD(COMGETTER(HardDisk2Attachments))(ComSafeArrayOut (IHardDisk2Attachment *, aAttachments));
    503503    STDMETHOD(COMGETTER(VRDPServer))(IVRDPServer **vrdpServer);
     
    524524    STDMETHOD(COMSETTER(ClipboardMode)) (ClipboardMode_T aClipboardMode);
    525525    STDMETHOD(COMGETTER(GuestPropertyNotificationPatterns)) (BSTR *aPattern);
    526     STDMETHOD(COMSETTER(GuestPropertyNotificationPatterns)) (INPTR BSTR aPattern);
     526    STDMETHOD(COMSETTER(GuestPropertyNotificationPatterns)) (IN_BSTR aPattern);
    527527
    528528    // IMachine methods
    529529    STDMETHOD(SetBootOrder)(ULONG aPosition, DeviceType_T aDevice);
    530530    STDMETHOD(GetBootOrder)(ULONG aPosition, DeviceType_T *aDevice);
    531     STDMETHOD(AttachHardDisk2) (INPTR GUIDPARAM aId, StorageBus_T aBus,
     531    STDMETHOD(AttachHardDisk2) (IN_GUID aId, StorageBus_T aBus,
    532532                                LONG aChannel, LONG aDevice);
    533533    STDMETHOD(GetHardDisk2) (StorageBus_T aBus, LONG aChannel, LONG aDevice,
     
    537537    STDMETHOD(GetParallelPort) (ULONG slot, IParallelPort **port);
    538538    STDMETHOD(GetNetworkAdapter) (ULONG slot, INetworkAdapter **adapter);
    539     STDMETHOD(GetNextExtraDataKey)(INPTR BSTR aKey, BSTR *aNextKey, BSTR *aNextValue);
    540     STDMETHOD(GetExtraData)(INPTR BSTR aKey, BSTR *aValue);
    541     STDMETHOD(SetExtraData)(INPTR BSTR aKey, INPTR BSTR 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);
    542542    STDMETHOD(SaveSettings)();
    543543    STDMETHOD(SaveSettingsWithBackup) (BSTR *aBakFileName);
    544544    STDMETHOD(DiscardSettings)();
    545545    STDMETHOD(DeleteSettings)();
    546     STDMETHOD(GetSnapshot) (INPTR GUIDPARAM aId, ISnapshot **aSnapshot);
    547     STDMETHOD(FindSnapshot) (INPTR BSTR aName, ISnapshot **aSnapshot);
    548     STDMETHOD(SetCurrentSnapshot) (INPTR GUIDPARAM aId);
    549     STDMETHOD(CreateSharedFolder) (INPTR BSTR aName, INPTR BSTR aHostPath, BOOL aWritable);
    550     STDMETHOD(RemoveSharedFolder) (INPTR BSTR 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);
    551551    STDMETHOD(CanShowConsoleWindow) (BOOL *aCanShow);
    552552    STDMETHOD(ShowConsoleWindow) (ULONG64 *aWinId);
    553     STDMETHOD(GetGuestProperty) (INPTR BSTR aName, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags);
    554     STDMETHOD(GetGuestPropertyValue) (INPTR BSTR aName, BSTR *aValue);
    555     STDMETHOD(GetGuestPropertyTimestamp) (INPTR BSTR aName, ULONG64 *aTimestamp);
    556     STDMETHOD(SetGuestProperty) (INPTR BSTR aName, INPTR BSTR aValue, INPTR BSTR aFlags);
    557     STDMETHOD(SetGuestPropertyValue) (INPTR BSTR aName, INPTR BSTR aValue);
    558     STDMETHOD(EnumerateGuestProperties) (INPTR BSTR 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));
    559559
    560560    // public methods only for internal purposes
     
    636636    HRESULT openSession (IInternalSessionControl *aControl);
    637637    HRESULT openRemoteSession (IInternalSessionControl *aControl,
    638                                INPTR BSTR aType, INPTR BSTR aEnvironment,
     638                               IN_BSTR aType, IN_BSTR aEnvironment,
    639639                               Progress *aProgress);
    640640    HRESULT openExistingSession (IInternalSessionControl *aControl);
     
    682682    HRESULT trySetRegistered (BOOL aRegistered);
    683683
    684     HRESULT getSharedFolder (const BSTR aName,
     684    HRESULT getSharedFolder (CBSTR aName,
    685685                             ComObjPtr <SharedFolder> &aSharedFolder,
    686686                             bool aSetError = false)
     
    713713    virtual HRESULT setMachineState (MachineState_T aMachineState);
    714714
    715     HRESULT findSharedFolder (const BSTR aName,
     715    HRESULT findSharedFolder (CBSTR aName,
    716716                              ComObjPtr <SharedFolder> &aSharedFolder,
    717717                              bool aSetError = false);
     
    730730    HRESULT findSnapshot (const Guid &aId, ComObjPtr <Snapshot> &aSnapshot,
    731731                          bool aSetError = false);
    732     HRESULT findSnapshot (const BSTR aName, ComObjPtr <Snapshot> &aSnapshot,
     732    HRESULT findSnapshot (IN_BSTR aName, ComObjPtr <Snapshot> &aSnapshot,
    733733                          bool aSetError = false);
    734734
     
    875875    STDMETHOD(GetIPCId)(BSTR *id);
    876876    STDMETHOD(RunUSBDeviceFilters) (IUSBDevice *aUSBDevice, BOOL *aMatched, ULONG *aMaskedIfs);
    877     STDMETHOD(CaptureUSBDevice) (INPTR GUIDPARAM aId);
    878     STDMETHOD(DetachUSBDevice) (INPTR GUIDPARAM aId, BOOL aDone);
     877    STDMETHOD(CaptureUSBDevice) (IN_GUID aId);
     878    STDMETHOD(DetachUSBDevice) (IN_GUID aId, BOOL aDone);
    879879    STDMETHOD(AutoCaptureUSBDevices)();
    880880    STDMETHOD(DetachAllUSBDevices)(BOOL aDone);
     
    882882    STDMETHOD(BeginSavingState) (IProgress *aProgress, BSTR *aStateFilePath);
    883883    STDMETHOD(EndSavingState) (BOOL aSuccess);
    884     STDMETHOD(AdoptSavedState) (INPTR BSTR aSavedStateFile);
     884    STDMETHOD(AdoptSavedState) (IN_BSTR aSavedStateFile);
    885885    STDMETHOD(BeginTakingSnapshot) (IConsole *aInitiator,
    886                                     INPTR BSTR aName, INPTR BSTR aDescription,
     886                                    IN_BSTR aName, IN_BSTR aDescription,
    887887                                    IProgress *aProgress, BSTR *aStateFilePath,
    888888                                    IProgress **aServerProgress);
    889889    STDMETHOD(EndTakingSnapshot) (BOOL aSuccess);
    890     STDMETHOD(DiscardSnapshot) (IConsole *aInitiator, INPTR GUIDPARAM aId,
     890    STDMETHOD(DiscardSnapshot) (IConsole *aInitiator, IN_GUID aId,
    891891                               MachineState_T *aMachineState, IProgress **aProgress);
    892892    STDMETHOD(DiscardCurrentState) (
     
    896896    STDMETHOD(PullGuestProperties) (ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues),
    897897              ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags));
    898     STDMETHOD(PushGuestProperties) (ComSafeArrayIn(INPTR BSTR, aNames), ComSafeArrayIn(INPTR BSTR, aValues),
    899               ComSafeArrayIn(ULONG64, aTimestamps), ComSafeArrayIn(INPTR BSTR, aFlags));
    900     STDMETHOD(PushGuestProperty) (INPTR BSTR aName, INPTR BSTR aValue,
    901                                   ULONG64 aTimestamp, INPTR BSTR 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);
    902902
    903903    // public methods only for internal purposes
     
    915915                               IVirtualBoxErrorInfo *aError,
    916916                               ULONG aMaskedIfs);
    917     HRESULT onUSBDeviceDetach (INPTR GUIDPARAM aId,
     917    HRESULT onUSBDeviceDetach (IN_GUID aId,
    918918                               IVirtualBoxErrorInfo *aError);
    919919    HRESULT onSharedFolderChange();
     
    10281028    // public initializer/uninitializer for internal purposes only
    10291029    HRESULT init (SessionMachine *aSessionMachine,
    1030                   INPTR GUIDPARAM aSnapshotId, INPTR BSTR aStateFilePath);
     1030                  IN_GUID aSnapshotId, IN_BSTR aStateFilePath);
    10311031    HRESULT init (Machine *aMachine,
    10321032                  const settings::Key &aHWNode, const settings::Key &aHDAsNode,
    1033                   INPTR GUIDPARAM aSnapshotId, INPTR BSTR aStateFilePath);
     1033                  IN_GUID aSnapshotId, IN_BSTR aStateFilePath);
    10341034    void uninit();
    10351035
  • trunk/src/VBox/Main/include/Matching.h

    r14949 r15051  
    486486        : F (aString), mString (aString) {}
    487487
    488     Matchable (const BSTR aString)
     488    Matchable (CBSTR aString)
    489489        : F (Bstr (aString)), mString (aString) {}
    490490
     
    500500    }
    501501
    502     Matchable &operator= (const BSTR aString)
     502    Matchable &operator= (CBSTR aString)
    503503    {
    504504        F::operator= (Bstr (aString));
  • trunk/src/VBox/Main/include/MediumImpl.h

    r14949 r15051  
    9292
    9393    // IMedium properties
    94     STDMETHOD(COMGETTER(Id)) (GUIDPARAMOUT aId);
     94    STDMETHOD(COMGETTER(Id)) (OUT_GUID aId);
    9595    STDMETHOD(COMGETTER(Description)) (BSTR *aDescription);
    96     STDMETHOD(COMSETTER(Description)) (INPTR BSTR aDescription);
     96    STDMETHOD(COMSETTER(Description)) (IN_BSTR aDescription);
    9797    STDMETHOD(COMGETTER(State)) (MediaState_T *aState);
    9898    STDMETHOD(COMGETTER(Location)) (BSTR *aLocation);
    99     STDMETHOD(COMSETTER(Location)) (INPTR BSTR aLocation);
     99    STDMETHOD(COMSETTER(Location)) (IN_BSTR aLocation);
    100100    STDMETHOD(COMGETTER(Name)) (BSTR *aName);
    101101    STDMETHOD(COMGETTER(Size)) (ULONG64 *aSize);
     
    104104
    105105    // IMedium methods
    106     STDMETHOD(GetSnapshotIds) (INPTR GUIDPARAM aMachineId,
     106    STDMETHOD(GetSnapshotIds) (IN_GUID aMachineId,
    107107                               ComSafeGUIDArrayOut (aSnapshotIds));
    108108    STDMETHOD(LockRead) (MediaState_T *aState);
     
    142142    virtual Utf8Str name();
    143143
    144     virtual HRESULT setLocation (const BSTR aLocation);
     144    virtual HRESULT setLocation (CBSTR aLocation);
    145145    virtual HRESULT queryInfo();
    146146
     
    222222
    223223    // protected initializer/uninitializer for internal purposes only
    224     HRESULT protectedInit (VirtualBox *aVirtualBox, const BSTR aLocation,
     224    HRESULT protectedInit (VirtualBox *aVirtualBox, CBSTR aLocation,
    225225                           const Guid &aId);
    226226    HRESULT protectedInit (VirtualBox *aVirtualBox, const settings::Key &aImageNode);
     
    265265    // public initializer/uninitializer for internal purposes only
    266266
    267     HRESULT init (VirtualBox *aParent, const BSTR aFilePath,
     267    HRESULT init (VirtualBox *aParent, CBSTR aFilePath,
    268268                  const Guid &aId)
    269269    {
     
    318318    // public initializer/uninitializer for internal purposes only
    319319
    320     HRESULT init (VirtualBox *aParent, const BSTR aFilePath,
     320    HRESULT init (VirtualBox *aParent, CBSTR aFilePath,
    321321                  const Guid &aId)
    322322    {
  • trunk/src/VBox/Main/include/NetworkAdapterImpl.h

    r14949 r15051  
    122122    STDMETHOD(COMSETTER(Enabled)) (BOOL aEnabled);
    123123    STDMETHOD(COMGETTER(MACAddress)) (BSTR *aMACAddress);
    124     STDMETHOD(COMSETTER(MACAddress)) (INPTR BSTR aMACAddress);
     124    STDMETHOD(COMSETTER(MACAddress)) (IN_BSTR aMACAddress);
    125125    STDMETHOD(COMGETTER(AttachmentType)) (NetworkAttachmentType_T *aAttachmentType);
    126126    STDMETHOD(COMGETTER(HostInterface)) (BSTR *aHostInterface);
    127     STDMETHOD(COMSETTER(HostInterface)) (INPTR BSTR aHostInterface);
     127    STDMETHOD(COMSETTER(HostInterface)) (IN_BSTR aHostInterface);
    128128#ifndef RT_OS_WINDOWS /** @todo ifdef VBOX_WITH_UNIXY_TAP_NETWORKING: need to find a way to exclude this in the xidl... */
    129129    STDMETHOD(COMGETTER(TAPFileDescriptor)) (LONG *aTAPFileDescriptor);
    130130    STDMETHOD(COMSETTER(TAPFileDescriptor)) (LONG aTAPFileDescriptor);
    131131    STDMETHOD(COMGETTER(TAPSetupApplication)) (BSTR *aTAPSetupApplication);
    132     STDMETHOD(COMSETTER(TAPSetupApplication)) (INPTR BSTR aTAPSetupApplication);
     132    STDMETHOD(COMSETTER(TAPSetupApplication)) (IN_BSTR aTAPSetupApplication);
    133133    STDMETHOD(COMGETTER(TAPTerminateApplication)) (BSTR *aTAPTerminateApplication);
    134     STDMETHOD(COMSETTER(TAPTerminateApplication)) (INPTR BSTR aTAPTerminateApplication);
     134    STDMETHOD(COMSETTER(TAPTerminateApplication)) (IN_BSTR aTAPTerminateApplication);
    135135#endif
    136136    STDMETHOD(COMGETTER(InternalNetwork)) (BSTR *aInternalNetwork);
    137     STDMETHOD(COMSETTER(InternalNetwork)) (INPTR BSTR aInternalNetwork);
     137    STDMETHOD(COMSETTER(InternalNetwork)) (IN_BSTR aInternalNetwork);
    138138    STDMETHOD(COMGETTER(NATNetwork)) (BSTR *aNATNetwork);
    139     STDMETHOD(COMSETTER(NATNetwork)) (INPTR BSTR aNATNetwork);
     139    STDMETHOD(COMSETTER(NATNetwork)) (IN_BSTR aNATNetwork);
    140140    STDMETHOD(COMGETTER(CableConnected)) (BOOL *aConnected);
    141141    STDMETHOD(COMSETTER(CableConnected)) (BOOL aConnected);
     
    145145    STDMETHOD(COMSETTER(LineSpeed)) (ULONG aSpeed);
    146146    STDMETHOD(COMGETTER(TraceFile)) (BSTR *aTraceFile);
    147     STDMETHOD(COMSETTER(TraceFile)) (INPTR BSTR aTraceFile);
     147    STDMETHOD(COMSETTER(TraceFile)) (IN_BSTR aTraceFile);
    148148
    149149    // INetworkAdapter methods
  • trunk/src/VBox/Main/include/ParallelPortImpl.h

    r14949 r15051  
    9595    STDMETHOD(COMSETTER(IOBase))  (ULONG      aIOBase);
    9696    STDMETHOD(COMGETTER(Path))    (BSTR      *aPath);
    97     STDMETHOD(COMSETTER(Path))    (INPTR BSTR aPath);
     97    STDMETHOD(COMSETTER(Path))    (IN_BSTR aPath);
    9898
    9999    // public methods only for internal purposes
     
    116116private:
    117117
    118     HRESULT checkSetPath (const BSTR aPath);
     118    HRESULT checkSetPath (CBSTR aPath);
    119119
    120120    const ComObjPtr <Machine, ComWeakRef> mParent;
  • trunk/src/VBox/Main/include/Performance.h

    r14949 r15051  
    386386    {
    387387    public:
    388         Filter(ComSafeArrayIn(INPTR BSTR, metricNames),
     388        Filter(ComSafeArrayIn(IN_BSTR, metricNames),
    389389               ComSafeArrayIn(IUnknown * , objects));
    390390        static bool patternMatch(const char *pszPat, const char *pszName,
     
    392392        bool match(const ComPtr<IUnknown> object, const std::string &name) const;
    393393    private:
    394         void init(ComSafeArrayIn(INPTR BSTR, metricNames),
     394        void init(ComSafeArrayIn(IN_BSTR, metricNames),
    395395                  ComSafeArrayIn(IUnknown * , objects));
    396396
  • trunk/src/VBox/Main/include/PerformanceImpl.h

    r14949 r15051  
    143143
    144144    // IPerformanceCollector methods
    145     STDMETHOD(GetMetrics) (ComSafeArrayIn (INPTR BSTR, metricNames),
     145    STDMETHOD(GetMetrics) (ComSafeArrayIn (IN_BSTR, metricNames),
    146146                           ComSafeArrayIn (IUnknown *, objects),
    147147                           ComSafeArrayOut (IPerformanceMetric *, outMetrics));
    148     STDMETHOD(SetupMetrics) (ComSafeArrayIn (INPTR BSTR, metricNames),
     148    STDMETHOD(SetupMetrics) (ComSafeArrayIn (IN_BSTR, metricNames),
    149149                             ComSafeArrayIn (IUnknown *, objects),
    150150                             ULONG aPeriod, ULONG aCount,
    151151                             ComSafeArrayOut (IPerformanceMetric *,
    152152                                              outMetrics));
    153     STDMETHOD(EnableMetrics) (ComSafeArrayIn (INPTR BSTR, metricNames),
     153    STDMETHOD(EnableMetrics) (ComSafeArrayIn (IN_BSTR, metricNames),
    154154                              ComSafeArrayIn (IUnknown *, objects),
    155155                              ComSafeArrayOut (IPerformanceMetric *,
    156156                                               outMetrics));
    157     STDMETHOD(DisableMetrics) (ComSafeArrayIn (INPTR BSTR, metricNames),
     157    STDMETHOD(DisableMetrics) (ComSafeArrayIn (IN_BSTR, metricNames),
    158158                               ComSafeArrayIn (IUnknown *, objects),
    159159                               ComSafeArrayOut (IPerformanceMetric *,
    160160                                                outMetrics));
    161     STDMETHOD(QueryMetricsData) (ComSafeArrayIn (INPTR BSTR, metricNames),
     161    STDMETHOD(QueryMetricsData) (ComSafeArrayIn (IN_BSTR, metricNames),
    162162                                 ComSafeArrayIn (IUnknown *, objects),
    163163                                 ComSafeArrayOut (BSTR, outMetricNames),
  • trunk/src/VBox/Main/include/ProgressImpl.h

    r14949 r15051  
    6060#endif
    6161                  IUnknown *aInitiator,
    62                   const BSTR aDescription, GUIDPARAMOUT aId = NULL);
     62                  CBSTR aDescription, OUT_GUID aId = NULL);
    6363    HRESULT protectedInit (AutoInitSpan &aAutoInitSpan);
    6464    void protectedUninit (AutoUninitSpan &aAutoUninitSpan);
     
    6767
    6868    // IProgress properties
    69     STDMETHOD(COMGETTER(Id)) (GUIDPARAMOUT aId);
     69    STDMETHOD(COMGETTER(Id)) (OUT_GUID aId);
    7070    STDMETHOD(COMGETTER(Description)) (BSTR *aDescription);
    7171    STDMETHOD(COMGETTER(Initiator)) (IUnknown **aInitiator);
     
    154154#endif
    155155                  IUnknown *aInitiator,
    156                   const BSTR aDescription, BOOL aCancelable,
    157                   GUIDPARAMOUT aId = NULL)
     156                  CBSTR aDescription, BOOL aCancelable,
     157                  OUT_GUID aId = NULL)
    158158    {
    159159        return init (
     
    169169#endif
    170170                  IUnknown *aInitiator,
    171                   const BSTR aDescription, BOOL aCancelable,
    172                   ULONG aOperationCount, const BSTR aOperationDescription,
    173                   GUIDPARAMOUT aId = NULL);
     171                  CBSTR aDescription, BOOL aCancelable,
     172                  ULONG aOperationCount, CBSTR aOperationDescription,
     173                  OUT_GUID aId = NULL);
    174174
    175175    HRESULT init (BOOL aCancelable, ULONG aOperationCount,
    176                   const BSTR aOperationDescription);
     176                  CBSTR aOperationDescription);
    177177
    178178    void uninit();
     
    186186
    187187    HRESULT notifyProgress (LONG aPercent);
    188     HRESULT advanceOperation (const BSTR aOperationDescription);
     188    HRESULT advanceOperation (CBSTR aOperationDescription);
    189189
    190190    HRESULT notifyComplete (HRESULT aResultCode);
     
    271271#endif
    272272                  IUnknown *aInitiator,
    273                   const BSTR aDescription,
     273                  CBSTR aDescription,
    274274                  IProgress *aProgress1, IProgress *aProgress2,
    275                   GUIDPARAMOUT aId = NULL);
     275                  OUT_GUID aId = NULL);
    276276
    277277    /**
     
    292292#endif
    293293                  IUnknown *aInitiator,
    294                   const BSTR aDescription,
     294                  CBSTR aDescription,
    295295                  InputIterator aFirstProgress, InputIterator aLastProgress,
    296                   GUIDPARAMOUT aId = NULL)
     296                  OUT_GUID aId = NULL)
    297297    {
    298298        /* Enclose the state transition NotReady->InInit->Ready */
     
    322322#endif
    323323                           IUnknown *aInitiator,
    324                            const BSTR aDescription, GUIDPARAMOUT aId);
     324                           CBSTR aDescription, OUT_GUID aId);
    325325
    326326public:
  • trunk/src/VBox/Main/include/RemoteUSBDeviceImpl.h

    r14949 r15051  
    6464
    6565    // IUSBDevice properties
    66     STDMETHOD(COMGETTER(Id)) (GUIDPARAMOUT aId);
     66    STDMETHOD(COMGETTER(Id)) (OUT_GUID aId);
    6767    STDMETHOD(COMGETTER(VendorId)) (USHORT *aVendorId);
    6868    STDMETHOD(COMGETTER(ProductId)) (USHORT *aProductId);
     
    140140COM_DECL_READONLY_ENUM_AND_COLLECTION_EX_BEGIN (ComObjPtr <RemoteUSBDevice>, IHostUSBDevice, RemoteUSBDevice)
    141141
    142     STDMETHOD(FindById) (INPTR GUIDPARAM aId, IHostUSBDevice **aDevice)
     142    STDMETHOD(FindById) (IN_GUID aId, IHostUSBDevice **aDevice)
    143143    {
    144144        Guid idToFind = aId;
     
    168168    }
    169169
    170     STDMETHOD(FindByAddress) (INPTR BSTR aAddress, IHostUSBDevice **aDevice)
     170    STDMETHOD(FindByAddress) (IN_BSTR aAddress, IHostUSBDevice **aDevice)
    171171    {
    172172        if (!aAddress)
  • trunk/src/VBox/Main/include/SerialPortImpl.h

    r14949 r15051  
    104104    STDMETHOD(COMSETTER(IOBase))   (ULONG      aIOBase);
    105105    STDMETHOD(COMGETTER(Path))     (BSTR      *aPath);
    106     STDMETHOD(COMSETTER(Path))     (INPTR BSTR aPath);
     106    STDMETHOD(COMSETTER(Path))     (IN_BSTR aPath);
    107107    STDMETHOD(COMGETTER(Server))   (BOOL      *aServer);
    108108    STDMETHOD(COMSETTER(Server))   (BOOL       aServer);
     
    127127private:
    128128
    129     HRESULT checkSetPath (const BSTR aPath);
     129    HRESULT checkSetPath (CBSTR aPath);
    130130
    131131    const ComObjPtr <Machine, ComWeakRef> mParent;
  • trunk/src/VBox/Main/include/SessionImpl.h

    r14949 r15051  
    104104    STDMETHOD(OnSharedFolderChange) (BOOL aGlobal);
    105105    STDMETHOD(OnUSBDeviceAttach) (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs);
    106     STDMETHOD(OnUSBDeviceDetach) (INPTR GUIDPARAM aId, IVirtualBoxErrorInfo *aError);
     106    STDMETHOD(OnUSBDeviceDetach) (IN_GUID aId, IVirtualBoxErrorInfo *aError);
    107107    STDMETHOD(OnShowWindow) (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId);
    108     STDMETHOD(AccessGuestProperty) (INPTR BSTR aName, INPTR BSTR aValue, INPTR BSTR aFlags,
     108    STDMETHOD(AccessGuestProperty) (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags,
    109109                                    BOOL aIsSetter, BSTR *aRetValue, ULONG64 *aRetTimestamp, BSTR *aRetFlags);
    110     STDMETHOD(EnumerateGuestProperties) (INPTR BSTR aPatterns,
     110    STDMETHOD(EnumerateGuestProperties) (IN_BSTR aPatterns,
    111111                                         ComSafeArrayOut(BSTR, aNames),
    112112                                         ComSafeArrayOut(BSTR, aValues),
  • trunk/src/VBox/Main/include/SharedFolderImpl.h

    r14949 r15051  
    6767
    6868    // public initializer/uninitializer for internal purposes only
    69     HRESULT init (Machine *aMachine, const BSTR aName, const BSTR aHostPath, BOOL aWritable);
     69    HRESULT init (Machine *aMachine, CBSTR aName, CBSTR aHostPath, BOOL aWritable);
    7070    HRESULT initCopy (Machine *aMachine, SharedFolder *aThat);
    71     HRESULT init (Console *aConsole, const BSTR aName, const BSTR aHostPath, BOOL aWritable);
    72     HRESULT init (VirtualBox *aVirtualBox, const BSTR aName, const BSTR 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);
    7373    void uninit();
    7474
     
    9595
    9696    HRESULT protectedInit (VirtualBoxBaseWithChildrenNEXT *aParent,
    97                            const BSTR aName, const BSTR aHostPath, BOOL aWritable);
     97                           CBSTR aName, CBSTR aHostPath, BOOL aWritable);
    9898
    9999private:
     
    111111COM_DECL_READONLY_ENUM_AND_COLLECTION_BEGIN (SharedFolder)
    112112
    113     STDMETHOD(FindByName) (INPTR BSTR aName, ISharedFolder **aSharedFolder)
     113    STDMETHOD(FindByName) (IN_BSTR aName, ISharedFolder **aSharedFolder)
    114114    {
    115115        if (!aName)
  • trunk/src/VBox/Main/include/SnapshotImpl.h

    r14949 r15051  
    7070
    7171    // public initializer/uninitializer only for internal purposes
    72     HRESULT init (const Guid &aId, INPTR BSTR aName, INPTR BSTR aDescription,
     72    HRESULT init (const Guid &aId, IN_BSTR aName, IN_BSTR aDescription,
    7373                  RTTIMESPEC aTimeStamp, SnapshotMachine *aMachine,
    7474                  Snapshot *aParent);
     
    7878
    7979    // ISnapshot properties
    80     STDMETHOD(COMGETTER(Id)) (GUIDPARAMOUT aId);
     80    STDMETHOD(COMGETTER(Id)) (OUT_GUID aId);
    8181    STDMETHOD(COMGETTER(Name)) (BSTR *aName);
    82     STDMETHOD(COMSETTER(Name)) (INPTR BSTR aName);
     82    STDMETHOD(COMSETTER(Name)) (IN_BSTR aName);
    8383    STDMETHOD(COMGETTER(Description)) (BSTR *aDescription);
    84     STDMETHOD(COMSETTER(Description)) (INPTR BSTR aDescription);
     84    STDMETHOD(COMSETTER(Description)) (IN_BSTR aDescription);
    8585    STDMETHOD(COMGETTER(TimeStamp)) (LONG64 *aTimeStamp);
    8686    STDMETHOD(COMGETTER(Online)) (BOOL *aOnline);
     
    110110
    111111    ULONG descendantCount();
    112     ComObjPtr <Snapshot> findChildOrSelf (INPTR GUIDPARAM aId);
    113     ComObjPtr <Snapshot> findChildOrSelf (INPTR BSTR aName);
     112    ComObjPtr <Snapshot> findChildOrSelf (IN_GUID aId);
     113    ComObjPtr <Snapshot> findChildOrSelf (IN_BSTR aName);
    114114
    115115    void updateSavedStatePaths (const char *aOldPath, const char *aNewPath);
  • trunk/src/VBox/Main/include/SystemPropertiesImpl.h

    r14949 r15051  
    7676    STDMETHOD(COMGETTER(MaxBootPosition) (ULONG *aMaxBootPosition));
    7777    STDMETHOD(COMGETTER(DefaultMachineFolder)) (BSTR *aDefaultMachineFolder);
    78     STDMETHOD(COMSETTER(DefaultMachineFolder)) (INPTR BSTR aDefaultMachineFolder);
     78    STDMETHOD(COMSETTER(DefaultMachineFolder)) (IN_BSTR aDefaultMachineFolder);
    7979    STDMETHOD(COMGETTER(DefaultHardDiskFolder)) (BSTR *aDefaultHardDiskFolder);
    80     STDMETHOD(COMSETTER(DefaultHardDiskFolder)) (INPTR BSTR aDefaultHardDiskFolder);
     80    STDMETHOD(COMSETTER(DefaultHardDiskFolder)) (IN_BSTR aDefaultHardDiskFolder);
    8181    STDMETHOD(COMGETTER(HardDiskFormats)) (ComSafeArrayOut (IHardDiskFormat *, aHardDiskFormats));
    8282    STDMETHOD(COMGETTER(DefaultHardDiskFormat)) (BSTR *aDefaultHardDiskFolder);
    83     STDMETHOD(COMSETTER(DefaultHardDiskFormat)) (INPTR BSTR aDefaultHardDiskFolder);
     83    STDMETHOD(COMSETTER(DefaultHardDiskFormat)) (IN_BSTR aDefaultHardDiskFolder);
    8484    STDMETHOD(COMGETTER(RemoteDisplayAuthLibrary)) (BSTR *aRemoteDisplayAuthLibrary);
    85     STDMETHOD(COMSETTER(RemoteDisplayAuthLibrary)) (INPTR BSTR aRemoteDisplayAuthLibrary);
     85    STDMETHOD(COMSETTER(RemoteDisplayAuthLibrary)) (IN_BSTR aRemoteDisplayAuthLibrary);
    8686    STDMETHOD(COMGETTER(WebServiceAuthLibrary)) (BSTR *aWebServiceAuthLibrary);
    87     STDMETHOD(COMSETTER(WebServiceAuthLibrary)) (INPTR BSTR aWebServiceAuthLibrary);
     87    STDMETHOD(COMSETTER(WebServiceAuthLibrary)) (IN_BSTR aWebServiceAuthLibrary);
    8888    STDMETHOD(COMGETTER(HWVirtExEnabled)) (BOOL *enabled);
    8989    STDMETHOD(COMSETTER(HWVirtExEnabled)) (BOOL enabled);
     
    9696    HRESULT saveSettings (settings::Key &aGlobal);
    9797
    98     ComObjPtr <HardDiskFormat> hardDiskFormat (const BSTR aFormat);
     98    ComObjPtr <HardDiskFormat> hardDiskFormat (CBSTR aFormat);
    9999
    100100    // public methods for internal purposes only
     
    120120    typedef std::list <ComObjPtr <HardDiskFormat> > HardDiskFormatList;
    121121
    122     HRESULT setDefaultMachineFolder (const BSTR aPath);
    123     HRESULT setDefaultHardDiskFolder (const BSTR aPath);
    124     HRESULT setDefaultHardDiskFormat (const BSTR aFormat);
     122    HRESULT setDefaultMachineFolder (CBSTR aPath);
     123    HRESULT setDefaultHardDiskFolder (CBSTR aPath);
     124    HRESULT setDefaultHardDiskFormat (CBSTR aFormat);
    125125
    126     HRESULT setRemoteDisplayAuthLibrary (const BSTR aPath);
    127     HRESULT setWebServiceAuthLibrary (const BSTR aPath);
     126    HRESULT setRemoteDisplayAuthLibrary (CBSTR aPath);
     127    HRESULT setWebServiceAuthLibrary (CBSTR aPath);
    128128
    129129    const ComObjPtr <VirtualBox, ComWeakRef> mParent;
  • trunk/src/VBox/Main/include/USBControllerImpl.h

    r14949 r15051  
    102102
    103103    // IUSBController methods
    104     STDMETHOD(CreateDeviceFilter) (INPTR BSTR aName, IUSBDeviceFilter **aFilter);
     104    STDMETHOD(CreateDeviceFilter) (IN_BSTR aName, IUSBDeviceFilter **aFilter);
    105105    STDMETHOD(InsertDeviceFilter) (ULONG aPosition, IUSBDeviceFilter *aFilter);
    106106    STDMETHOD(RemoveDeviceFilter) (ULONG aPosition, IUSBDeviceFilter **aFilter);
  • trunk/src/VBox/Main/include/USBDeviceImpl.h

    r14949 r15051  
    6464
    6565    // IUSBDevice properties
    66     STDMETHOD(COMGETTER(Id))(GUIDPARAMOUT aId);
     66    STDMETHOD(COMGETTER(Id))(OUT_GUID aId);
    6767    STDMETHOD(COMGETTER(VendorId))(USHORT *aVendorId);
    6868    STDMETHOD(COMGETTER(ProductId))(USHORT *aProductId);
     
    123123COM_DECL_READONLY_ENUM_AND_COLLECTION_EX_BEGIN (ComObjPtr <OUSBDevice>, IUSBDevice, OUSBDevice)
    124124
    125     STDMETHOD(FindById) (INPTR GUIDPARAM aId, IUSBDevice **aDevice)
     125    STDMETHOD(FindById) (IN_GUID aId, IUSBDevice **aDevice)
    126126    {
    127127        Guid idToFind = aId;
     
    153153    }
    154154
    155     STDMETHOD(FindByAddress) (INPTR BSTR aAddress, IUSBDevice **aDevice)
     155    STDMETHOD(FindByAddress) (IN_BSTR aAddress, IUSBDevice **aDevice)
    156156    {
    157157        if (!aAddress)
  • trunk/src/VBox/Main/include/VRDPServerImpl.h

    r14949 r15051  
    9292    STDMETHOD(COMSETTER(Port)) (ULONG aPort);
    9393    STDMETHOD(COMGETTER(NetAddress)) (BSTR *aAddress);
    94     STDMETHOD(COMSETTER(NetAddress)) (INPTR BSTR aAddress);
     94    STDMETHOD(COMSETTER(NetAddress)) (IN_BSTR aAddress);
    9595    STDMETHOD(COMGETTER(AuthType)) (VRDPAuthType_T *aType);
    9696    STDMETHOD(COMSETTER(AuthType)) (VRDPAuthType_T aType);
  • trunk/src/VBox/Main/include/VirtualBoxErrorInfoImpl.h

    r14972 r15051  
    7070    // public initializer/uninitializer for internal purposes only
    7171    HRESULT init (HRESULT aResultCode, const GUID &aIID,
    72                   const BSTR aComponent, const BSTR aText,
     72                  CBSTR aComponent, CBSTR aText,
    7373                  IVirtualBoxErrorInfo *aNext = NULL);
    7474
    7575    // IVirtualBoxErrorInfo properties
    7676    STDMETHOD(COMGETTER(ResultCode)) (HRESULT *aResultCode);
    77     STDMETHOD(COMGETTER(InterfaceID)) (GUIDPARAMOUT aIID);
     77    STDMETHOD(COMGETTER(InterfaceID)) (OUT_GUID aIID);
    7878    STDMETHOD(COMGETTER(Component)) (BSTR *aComponent);
    7979    STDMETHOD(COMGETTER(Text)) (BSTR *aText);
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r14949 r15051  
    137137    /* IVirtualBox methods */
    138138
    139     STDMETHOD(CreateMachine) (INPTR BSTR aName, INPTR BSTR aOsTypeId, INPTR BSTR aBaseFolder,
    140                               INPTR GUIDPARAM aId, IMachine **aMachine);
    141     STDMETHOD(CreateLegacyMachine) (INPTR BSTR aName, INPTR BSTR aOsTypeId, INPTR BSTR aSettingsFile,
    142                                     INPTR GUIDPARAM aId, IMachine **aMachine);
    143     STDMETHOD(OpenMachine) (INPTR BSTR 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);
    144144    STDMETHOD(RegisterMachine) (IMachine *aMachine);
    145     STDMETHOD(GetMachine) (INPTR GUIDPARAM aId, IMachine **aMachine);
    146     STDMETHOD(FindMachine) (INPTR BSTR aName, IMachine **aMachine);
    147     STDMETHOD(UnregisterMachine) (INPTR GUIDPARAM aId, IMachine **aMachine);
    148 
    149     STDMETHOD(CreateHardDisk2) (INPTR BSTR aFormat, INPTR BSTR 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,
    150150                                IHardDisk2 **aHardDisk);
    151     STDMETHOD(OpenHardDisk2) (INPTR BSTR aLocation, IHardDisk2 **aHardDisk);
    152     STDMETHOD(GetHardDisk2) (INPTR GUIDPARAM aId, IHardDisk2 **aHardDisk);
    153     STDMETHOD(FindHardDisk2) (INPTR BSTR aLocation, IHardDisk2 **aHardDisk);
    154 
    155     STDMETHOD(OpenDVDImage) (INPTR BSTR aLocation, INPTR GUIDPARAM aId,
     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,
    156156                             IDVDImage2 **aDVDImage);
    157     STDMETHOD(GetDVDImage) (INPTR GUIDPARAM aId, IDVDImage2 **aDVDImage);
    158     STDMETHOD(FindDVDImage) (INPTR BSTR aLocation, IDVDImage2 **aDVDImage);
    159 
    160     STDMETHOD(OpenFloppyImage) (INPTR BSTR aLocation, INPTR GUIDPARAM aId,
     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,
    161161                                IFloppyImage2 **aFloppyImage);
    162     STDMETHOD(GetFloppyImage) (INPTR GUIDPARAM aId, IFloppyImage2 **aFloppyImage);
    163     STDMETHOD(FindFloppyImage) (INPTR BSTR aLocation, IFloppyImage2 **aFloppyImage);
    164 
    165     STDMETHOD(GetGuestOSType) (INPTR BSTR aId, IGuestOSType **aType);
    166     STDMETHOD(CreateSharedFolder) (INPTR BSTR aName, INPTR BSTR aHostPath, BOOL aWritable);
    167     STDMETHOD(RemoveSharedFolder) (INPTR BSTR aName);
    168     STDMETHOD(GetNextExtraDataKey) (INPTR BSTR aKey, BSTR *aNextKey, BSTR *aNextValue);
    169     STDMETHOD(GetExtraData) (INPTR BSTR aKey, BSTR *aValue);
    170     STDMETHOD(SetExtraData) (INPTR BSTR aKey, INPTR BSTR aValue);
    171     STDMETHOD(OpenSession) (ISession *aSession, INPTR GUIDPARAM aMachineId);
    172     STDMETHOD(OpenRemoteSession) (ISession *aSession, INPTR GUIDPARAM aMachineId,
    173                                   INPTR BSTR aType, INPTR BSTR 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,
    174174                                  IProgress **aProgress);
    175     STDMETHOD(OpenExistingSession) (ISession *aSession, INPTR GUIDPARAM aMachineId);
     175    STDMETHOD(OpenExistingSession) (ISession *aSession, IN_GUID aMachineId);
    176176
    177177    STDMETHOD(RegisterCallback) (IVirtualBoxCallback *aCallback);
    178178    STDMETHOD(UnregisterCallback) (IVirtualBoxCallback *aCallback);
    179179
    180     STDMETHOD(WaitForPropertyChange) (INPTR BSTR aWhat, ULONG aTimeout,
     180    STDMETHOD(WaitForPropertyChange) (IN_BSTR aWhat, ULONG aTimeout,
    181181                                      BSTR *aChanged, BSTR *aValues);
    182182
     
    189189
    190190    HRESULT addProgress (IProgress *aProgress);
    191     HRESULT removeProgress (INPTR GUIDPARAM aId);
     191    HRESULT removeProgress (IN_GUID aId);
    192192
    193193#ifdef RT_OS_WINDOWS
     
    204204    void onMachineStateChange (const Guid &aId, MachineState_T aState);
    205205    void onMachineDataChange (const Guid &aId);
    206     BOOL onExtraDataCanChange(const Guid &aId, INPTR BSTR aKey, INPTR BSTR aValue,
     206    BOOL onExtraDataCanChange(const Guid &aId, IN_BSTR aKey, IN_BSTR aValue,
    207207                              Bstr &aError);
    208     void onExtraDataChange(const Guid &aId, INPTR BSTR aKey, INPTR BSTR aValue);
     208    void onExtraDataChange(const Guid &aId, IN_BSTR aKey, IN_BSTR aValue);
    209209    void onMachineRegistered (const Guid &aId, BOOL aRegistered);
    210210    void onSessionStateChange (const Guid &aId, SessionState_T aState);
     
    213213    void onSnapshotDiscarded (const Guid &aMachineId, const Guid &aSnapshotId);
    214214    void onSnapshotChange (const Guid &aMachineId, const Guid &aSnapshotId);
    215     void onGuestPropertyChange (const Guid &aMachineId, INPTR BSTR aName, INPTR BSTR aValue,
    216                                 INPTR BSTR aFlags);
     215    void onGuestPropertyChange (const Guid &aMachineId, IN_BSTR aName, IN_BSTR aValue,
     216                                IN_BSTR aFlags);
    217217
    218218    ComObjPtr <GuestOSType> getUnknownOSType();
     
    234234                         ComObjPtr <Machine> *machine = NULL);
    235235
    236     HRESULT findHardDisk2 (const Guid *aId, const BSTR aLocation,
     236    HRESULT findHardDisk2 (const Guid *aId, CBSTR aLocation,
    237237                           bool aSetError, ComObjPtr <HardDisk2> *aHardDisk = NULL);
    238     HRESULT findDVDImage2 (const Guid *aId, const BSTR aLocation,
     238    HRESULT findDVDImage2 (const Guid *aId, CBSTR aLocation,
    239239                           bool aSetError, ComObjPtr <DVDImage2> *aImage = NULL);
    240     HRESULT findFloppyImage2 (const Guid *aId, const BSTR aLocation,
     240    HRESULT findFloppyImage2 (const Guid *aId, CBSTR aLocation,
    241241                              bool aSetError, ComObjPtr <FloppyImage2> *aImage = NULL);
    242242
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette