Microsoft DirectX 9.0

CMediaPosition::Invoke

The Invoke method provides access to properties and methods exposed by the object.

Syntax

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

Parameters

dispidMember

Identifier of the member. Use CMediaPosition::GetIDsOfNames to obtain the dispatch identifier.

riid

Reserved for future use. Must be IID_NULL.

lcid

Locale context in which to interpret arguments.

wFlags

Flags describing the context of the call.

pdispparams

Pointer to a DIPPARAMS structure that contains the arguments.

pvarResult

Pointer to a VARIANT that receives the result, or NULL if the caller expects no result.

pexcepinfo

Pointer to a structure that receives exception information.

puArgErr

Pointer to a variable that receives the index of the first argument that causes an error.

Return Value

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK Success.
DISP_E_UNKNOWNINTERFACE The riid parameter is not IID_NULL

See Also