Function Reference


_SysReadString

Reads the contents of a BSTR into an AutoIt string.

_SysReadString($pBSTR [, $iLen = -1])

Parameters

$pBSTR Pointer to the BSTR to read.
$iLen (Optional) Length of the string to read (default: -1, reads entire string).

Return Value

Success: The string contents of the BSTR.
Failure: Empty string, with @error set to:
1 - Invalid BSTR pointer.
2 - Invalid string length or empty BSTR.

Remarks

The BSTR must be valid and not freed.

Related

_SysAllocString, _SysFreeString, _SysStringLen