Skip to content

JsCreateExternalObject

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

Creates a new object that stores some external data.

Syntax

STDAPI_(JsErrorCode)
    JsCreateExternalObject(
    _In_opt_ void *data,
    _In_opt_ JsFinalizeCallback finalizeCallback,
    _Out_ JsValueRef *object);

Parameters

  • data: External data that the object will represent. May be null.
  • finalizeCallback: A callback for when the object is finalized. May be null.
  • object: The new object.

Return Value

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

Remarks

Requires an active script context.

Clone this wiki locally