Partager via


CMediaPosition::Invoke (Compact 2013)

3/26/2014

Provides access to properties and methods exposed by an object.

Syntax

HRESULT Invoke(
  DISPID dispidMember,
  REFIID riid,
  LCID lcid,
  WORD wFlags,
  DISPPARAMS* pdispparams,
  VARIANT* pvarResult,
  EXCEPINFO* pexcepinfo,
  UINT* puArgErr 
);

Parameters

  • riid
    Reserved for future use. Must be IID_NULL.
  • lcid
    Locale context in which to interpret arguments.
  • wFlags
    Flags describing the context of the CMediaPosition::Invoke call.
  • pdispparams
    Pointer to a structure containing an array of arguments, an array of argument dispatch IDs for named arguments, and counts for the number of elements in the arrays.
  • pvarResult
    Pointer to where the result is to be stored, or NULL if the caller expects no result.
  • pexcepinfo
    Pointer to a structure containing exception information.
  • puArgErr
    Index of the first argument, within the rgvarg array, that has an error.

Return Value

Returns DISP_E_UNKNOWNINTERFACE if riid is not IID_NULL.

Returns one of the error codes from CMediaPosition::GetTypeInfo if the call fails.

Otherwise, returns the HRESULT from the call to IDispatch::Invoke.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CMediaPosition Class