VirtualBox

Changeset 22381 in vbox for trunk


Ignore:
Timestamp:
Aug 21, 2009 9:13:15 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51324
Message:

Main, Python glue: Windows updates

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/vboxapi.py

    r22362 r22381  
    260260        str += "   _typelib_guid_ = tlb_guid\n"
    261261        str += "   _typelib_version_ = 1, 0\n"
     262        str += "   _reg_clsctx_ = pythoncom.CLSCTX_INPROC_SERVER\n"
     263        # Maybe we'd better implement Dynamic invoke policy, to be more flexible here
     264        str += "   _reg_policy_spec_ = 'win32com.server.policy.EventHandlerPolicy'\n"
    262265
    263266        # generate capitalized version of callback methods -
     
    269272        str += "   def __init__(self): BaseClass.__init__(self, arg)\n"
    270273        str += "result = win32com.client.Dispatch('VirtualBox.CallbackWrapper')\n"
    271         str += "result.SetLocalObject("+iface+"Impl())\n"
     274        str += "result.SetLocalObject(win32com.server.util.wrap("+iface+"Impl()))\n"
    272275        exec (str,d,d)
    273276        return d['result']
     
    347350        str += "   def __init__(self): BaseClass.__init__(self, arg)\n"
    348351        str += "result = xpcom.components.classes['@virtualbox.org/CallbackWrapper;1'].createInstance()\n"
    349         str += "result.setLocalObject("+iface+"Impl())\n"
     352        # This wrapping is not entirely correct - we shall create a local object
     353        str += "result.setLocalObject(win32com.server.util.wrap("+iface+"Impl()))\n"
    350354        exec (str,d,d)
    351355        return d['result']
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r22358 r22381  
    10761076
    10771077  <interface
    1078      name="ILocalOwner" extends="$unknown"
    1079      uuid="308ff42a-dc45-49d4-a950-b1eee5e00bb5" wsmap="suppress"
     1078     name="ILocalOwner" extends="$dispatched"
     1079     uuid="308FF42A-DC45-49D4-A950-B1EEE5E00BB5" wsmap="suppress"
    10801080     >
    10811081    <desc>
     
    1233512335  <interface
    1233612336     name="ISession" extends="$dispatched"
    12337      uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
     12337     uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
    1233812338     wsmap="managed"
    1233912339     >
  • trunk/src/VBox/Main/include/VirtualBoxCallbackImpl.h

    r22358 r22381  
    4444
    4545    BEGIN_COM_MAP(CallbackWrapper)
    46         COM_INTERFACE_ENTRY2(IDispatch, IVirtualBoxCallback)
    47         COM_INTERFACE_ENTRY2(IDispatch, IConsoleCallback)
    4846        COM_INTERFACE_ENTRY2(IDispatch, ILocalOwner)
    4947        COM_INTERFACE_ENTRY(ISupportErrorInfo)
Note: See TracChangeset for help on using the changeset viewer.

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