DispCallFunc function (oleauto.h)

Low-level helper for Invoke that provides machine independence for customized Invoke.

Syntax

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

Parameters

pvInstance

An instance of the interface described by this type description.

oVft

For FUNC_VIRTUAL functions, specifies the offset in the VTBL.

cc

The calling convention. One of the CALLCONV values, such as CC_STDCALL.

vtReturn

The variant type of the function return value. Use VT_EMPTY to represent void.

cActuals

The number of function parameters.

prgvt

An array of variant types of the function parameters.

prgpvarg

The function parameters.

pvargResult

The function result.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll