Skip to content

JsCreateRuntime

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

Creates a new runtime.

Syntax

STDAPI_(JsErrorCode)
    JsCreateRuntime(
    _In_ JsRuntimeAttributes attributes,
    _In_opt_ JsThreadServiceCallback threadService,
    _Out_ JsRuntimeHandle *runtime);

Parameters

  • attributes: The attributes of the runtime to be created.
  • threadService: The thread service for the runtime. Can be null.
  • runtime: The runtime created.

Return Value

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

Remarks

Clone this wiki locally