JsVariantToValue Function

Creates a JavaScript value that is a projection of the passed in VARIANT.

Syntax

STDAPI_(JsErrorCode) JsVariantToValue(  
   _In_ VARIANT *variant,  
   _Out_ JsValueRef *value  
);  

Parameters

variant
A VARIANT to be projected.

value
A JavaScript value that is a projection of the VARIANT.

Return Value

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

Remarks

The projected value can be used by script to call a COM automation object from script. Hosts are responsible for enforcing COM threading rules.

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)