Share via


JsSetContextData Function

Sets the internal data of JsrtContext.

Syntax

STDAPI_(JsErrorCode) JsSetContextData(  
  _In_ JsContextRef context,  
  _In_ void *data  
);  
  

Parameters

context
The context to set the data to.

data
The pointer to the data to be set.

Return Value

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

Remarks

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)