Skip to content

JsPointerToString

Limin Zhu edited this page Mar 14, 2017 · 2 revisions

Creates a string value from a string pointer.

Syntax

STDAPI_(JsErrorCode)
    JsPointerToString(
    _In_reads_(stringLength) const wchar_t *stringValue,
    _In_ size_t stringLength,
    _Out_ JsValueRef *value);

Parameters

  • stringValue: The string pointer to convert to a string value.
  • stringLength: The length of the string to convert.
  • value: The new string value.

Return Value

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

Remarks

This API is Windows-only (see JsCreateString/JsCreateStringUtf16 for cross-platform equivalent). Requires an active script context.

Clone this wiki locally