ComObjValue() - Syntax & Usage | AutoHotkey

AutoHotkey

ComObjValue() [v1.0.91+]

Retrieves the value or pointer stored in a COM wrapper object.

Value := ComObjValue(ComObject)

Parameters

Value

A 64-bit signed integer.

ComObject

A wrapper object containing a COM object or typed value.

General Remarks

This function is not intended for general use.

Calling ComObjValue is equivalent to variant.llVal, where ComObject is treated as a VARIANT structure. Any script which uses this function must be aware what type of value the wrapper object contains and how it should be treated. For instance, if an interface pointer is returned, Release should not be called, but AddRef may be required depending on what the script does with the pointer.

Related

ComObjType, ComObjCreate, ComObjGet, ComObjActive