Skip to content

Latest commit

 

History

History
178 lines (83 loc) · 3.25 KB

PyIDispatchEx.md

File metadata and controls

178 lines (83 loc) · 3.25 KB

PyIDispatchEx

PyIDispatchEx Object

A OLE automation client object that uses the IDispatchEx scripting interface..

Methods

PyIDispatchEx.DeleteMemberByDispID

DeleteMemberByDispID(dispid)

Parameters

  • dispid : int

PyIDispatchEx.DeleteMemberByName

DeleteMemberByName(name, fdex)

Parameters

  • name : PyUnicode

    Passed in name to be mapped

  • fdex : int

    Determines the options

PyIDispatchEx.GetDispID

int = GetDispID(name, fdex

) Returns the member id for a name

Parameters

  • name : PyUnicode

    Passed in name to be mapped

  • fdex : int

    Determines the options for obtaining the member identifier. This can be a combination of the fdex* constants:

PyIDispatchEx.GetMemberName

str = GetMemberName(dispid) Returns the name associated with a member id

Parameters

  • dispid : int

    The member id

PyIDispatchEx.GetMemberProperties

int = GetMemberProperties(dispid, fdex

) Returns mask of fdex* flags describing a member

Parameters

  • dispid : int

    The member id

  • fdex : int

    fdex* flags specifying which properties to return

PyIDispatchEx.GetNextDispID

int = GetNextDispID(fdex, dispid

) Enumerates member ids.

Parameters

  • fdex : int

    Determines the options

  • dispid : int

    Current member, or DISPID_STARTENUM to begin enumeration. GetNextDispID will retrieve the item in the enumeration after this one.

PyIDispatchEx.InvokeEx

object = InvokeEx(dispid, lcid

, flags

, args

, types

, returnDesc

, serviceProvider

) Provides access to properties and methods exposed by a PyIDispatchEx object.

Parameters

  • dispid : int

  • lcid : int

  • flags : int

  • args : [object, ...]

    The arguments.

  • types=None : [object, ...]

    A tuple of type description object, or None if type descriptions are not available.

  • returnDesc=1 : object|int

    If types==None, should be a BOOL indicating if the result is needed. If types is a tuple, then should a be type description.

  • serviceProvider=None : PyIServiceProvider

    A service provider object supplied by the caller which allows the object to obtain services from the caller. Can be None.