Skip to content

JsGetGlobalObject

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Gets the global object in the current script context.

Syntax

STDAPI_(JsErrorCode)
    JsGetGlobalObject(
    _Out_ JsValueRef *globalObject);

Parameters

  • globalObject: The global object.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

Clone this wiki locally