Microsoft DirectX 9.0 |
The InvokeAtPresentationTime method queues a method to be invoked at the specified presentation time.
Syntax
HRESULT InvokeAtPresentationTime(
IDeferredCommand **pCmd,
REFTIME time,
GUID *iid,
long dispidMember,
short wFlags,
long cArgs,
VARIANT *pDispParams,
VARIANT *pvarResult,
short *puArgErr
);
Parameters
pCmd
[out] Address of a variable that receives an IDeferredCommand interface pointer.
time
[in] Time at which to invoke the command.
iid
[in] Pointer to the interface identifier (IID) of interface.
dispidMember
[in] Dispatch identifier (DISPID) of a method or property on the interface. Equivalent to the dispIdMember parameter of the IDispatch::InvokeAt method.
wFlags
[in] Flags describing the context of the call. Equivalent to the wFlags parameter of the IDispatch::InvokeAt method.
cArgs
[in] Number of arguments in pDispParams. Equivalent to the cArgs member of the DISPPARAMS structure.
pDispParams
[in] Pointer to an array that contains the arguments. Equivalent to the rgvarg member of the DISPPARAMS structure.
pvarResult
[in, out] Pointer a VARIANT that receives the result. Equivalent to the pVarResult parameter of the IDispatch::InvokeAt method.
puArgErr
[out] Pointer to a variable that receives the index of the first argument that has an error. Equivalent to the puArgErr parameter of the IDispatch::InvokeAt method.
Return Value
Returns an HRESULT value.
Remarks
Use the IDispatch::GetIDsOfNames method to retrieve the DISPID for the dispidMember parameter.
For a code example, see IQueueCommand::InvokeAtStreamTime.
See Also