ICallIndirect::CallIndirect method
Invokes one of the methods in the interface with an indirect reference to the arguments of the invocation.
Syntax
HRESULT CallIndirect( [out] HRESULT *phrReturn, [in] ULONG iMethod, [in] void *pvArgs, [out] ULONG *cbArgs );
Parameters
- phrReturn [out]
-
The value returned from the invocation of the method.
- iMethod [in]
-
The method number to be invoked.
- pvArgs [in]
-
A pointer to the stack frame with which to make the invocation. Details of the exact representation of this stack frame are processor-architecture specific.
- cbArgs [out]
-
The number of bytes to be popped from the stack to clear the stack of arguments to this invocation.
Return value
This method can return the following values.
| Return code | Description |
|---|---|
|
The method completed successfully. |
|
An unexpected error has occurred. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_ICallIndirect is defined as D573B4B1-894E-11d2-B8B6-00C04FB9618A |
See also