Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

JsCallFunction

Limin Zhu edited this page May 2, 2018 · 6 revisions

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: A JsValueRef array of arguments to the call. arguments[0] is thisArg or undefined if the function is to be called plainly.
  • 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.

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.