예제 #1
0
파일: __init__.py 프로젝트: hitej/meta-core
def Dispatch(
    dispatch, userName=None, resultCLSID=None, typeinfo=None, UnicodeToString=None, clsctx=pythoncom.CLSCTX_SERVER
):
    """Creates a Dispatch based COM object.
  """
    assert UnicodeToString is None, "this is deprecated and will go away"
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch, userName, clsctx)
    return __WrapDispatch(dispatch, userName, resultCLSID, typeinfo, clsctx=clsctx)
예제 #2
0
def Dispatch(dispatch,
             userName=None,
             resultCLSID=None,
             typeinfo=None,
             UnicodeToString=NeedUnicodeConversions,
             clsctx=pythoncom.CLSCTX_SERVER):
    """Creates a Dispatch based COM object.
  """
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(
        dispatch, userName, clsctx)
    return __WrapDispatch(dispatch, userName, resultCLSID, typeinfo,
                          UnicodeToString, clsctx)
예제 #3
0
def Dispatch(
    dispatch,
    userName=None,
    resultCLSID=None,
    typeinfo=None,
    UnicodeToString=NeedUnicodeConversions,
    clsctx=pythoncom.CLSCTX_SERVER,
):
    """Creates a Dispatch based COM object.
  """
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch, userName, clsctx)
    return __WrapDispatch(dispatch, userName, resultCLSID, typeinfo, UnicodeToString, clsctx)
예제 #4
0
def Dispatch(dispatch,
             userName=None,
             resultCLSID=None,
             typeinfo=None,
             UnicodeToString=None,
             clsctx=pythoncom.CLSCTX_SERVER):
    """Creates a Dispatch based COM object.
  """
    assert UnicodeToString is None, "this is deprecated and will go away"
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(
        dispatch, userName, clsctx)
    return __WrapDispatch(dispatch,
                          userName,
                          resultCLSID,
                          typeinfo,
                          clsctx=clsctx)