VirtualBox

Changeset 19239 in vbox for trunk/src/VBox/Main/win


Ignore:
Timestamp:
Apr 28, 2009 1:19:14 PM (16 years ago)
Author:
vboxsync
Message:

Main: support for using VBox from Python on Windows (still certain limitation apply, such as enum visibility)

Location:
trunk/src/VBox/Main/win
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/win/NetIf-win.cpp

    r19233 r19239  
    10251025    if(hr == S_OK)
    10261026    {
    1027         GUID                IfGuid;
    1028         hr = pIf->COMGETTER(Id)(&IfGuid);
     1027        Bstr                IfGuid;
     1028        hr = pIf->COMGETTER(Id)(IfGuid.asOutParam());
    10291029        Assert(hr == S_OK);
    10301030        if (hr == S_OK)
     
    11561156#else
    11571157    HRESULT rc;
    1158     GUID guid;
    1159     rc = pIf->COMGETTER(Id) (&guid);
     1158    Bstr guid;
     1159    rc = pIf->COMGETTER(Id) (guid.asOutParam());
    11601160    if(SUCCEEDED(rc))
    11611161    {
     
    11851185
    11861186                    d->msgCode = SVCHlpMsg::EnableStaticIpConfig;
    1187                     d->guid = guid;
     1187                    d->guid = Guid(guid);
    11881188                    d->iface = pIf;
    11891189                    d->u.StaticIP.IPAddress = ip;
     
    12181218#else
    12191219    HRESULT rc;
    1220     GUID guid;
    1221     rc = pIf->COMGETTER(Id) (&guid);
     1220    Bstr guid;
     1221    rc = pIf->COMGETTER(Id) (guid.asOutParam());
    12221222    if(SUCCEEDED(rc))
    12231223    {
     
    12801280#else
    12811281    HRESULT rc;
    1282     GUID guid;
    1283     rc = pIf->COMGETTER(Id) (&guid);
     1282    Bstr guid;
     1283    rc = pIf->COMGETTER(Id) (guid.asOutParam());
    12841284    if(SUCCEEDED(rc))
    12851285    {
     
    13401340#else
    13411341    HRESULT rc;
    1342     GUID guid;
    1343     rc = pIf->COMGETTER(Id) (&guid);
     1342    Bstr guid;
     1343    rc = pIf->COMGETTER(Id) (guid.asOutParam());
    13441344    if(SUCCEEDED(rc))
    13451345    {
  • trunk/src/VBox/Main/win/dllmain.cpp

    r8155 r19239  
    2828#include <atlcom.h>
    2929
     30#include <iprt/initterm.h>
     31
    3032CComModule _Module;
    3133
     
    4446        _Module.Init(ObjectMap, hInstance, &LIBID_VirtualBox);
    4547        DisableThreadLibraryCalls(hInstance);
     48
     49        // idempotent, so doesn't harm, and needed for COM embedding scenario
     50        RTR3Init();       
    4651    }
    4752    else if (dwReason == DLL_PROCESS_DETACH)
  • trunk/src/VBox/Main/win/svchlp.cpp

    r18488 r19239  
    248248    int vrc = read (guidStr);
    249249    if (RT_SUCCESS (vrc))
    250         aGuid = Guid (guidStr);
     250        aGuid = Guid (guidStr.c_str());
    251251    return vrc;
    252252}
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