DispCallFunc.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

DispCallFunc (OLEAUT32.@)

SYNOPSIS

HRESULT DispCallFunc
 (
  void*        pvInstance,
  ULONG_PTR    oVft,
  CALLCONV     cc,
  VARTYPE      vtReturn,
  UINT         cActuals,
  VARTYPE*     prgvt,
  VARIANTARG** prgpvarg,
  VARIANT*     pvargResult
 )

DESCRIPTION

Invokes a function of the specified calling convention, passing the specified arguments and returns the result.

PARAMS

pvInstance [In] Optional pointer to the instance whose function to invoke.

oVft [In] The offset in the vtable. See notes.

cc [In] Calling convention of the function to call.

vtReturn [In] The return type of the function.

cActuals [In] Number of parameters.

prgvt [In] The types of the parameters to pass. This is used for sizing only.

prgpvarg [In] The arguments to pass.

pvargResult [Out] The return value of the function. Can be NULL.

RETURNS

Success: S_OK.

Failure: HRESULT code.

NOTES

The HRESULT return value of this function is not affected by the return value of the user supplied function, which is returned in pvargResult.

If pvInstance is NULL then a non-object function is to be called and oVft is the address of the function to call.

The cc parameter can be one of the following values:
CC_FASTCALL
CC_CDECL
CC_PASCAL
CC_STDCALL
CC_FPFASTCALL
CC_SYSCALL
CC_MPWCDECL
CC_MPWPASCAL

IMPLEMENTATION

Defined in "oleauto.h".

Implemented in "dlls/oleaut32/typelib.c".

Debug channel "ole".