JsCallFunction Function
Invokes a function.
Syntax
STDAPI_(JsErrorCode) JsCallFunction(
_In_ JsValueRef function,
_In_reads_(argumentCount) JsValueRef *arguments,
_In_ unsigned short argumentCount,
_Out_opt_ JsValueRef *result
);
Parameters
function
The function to invoke.
arguments
The arguments to the call.
argumentCount
The number of arguments being passed in to the function.
result
The value returned from the function invocation, if any.
Return Value
The code JsNoError
if the operation succeeded, a failure code otherwise.
Remarks
Requires an active script context.
Requirements
Header: jsrt.h