Function Reference


_SafeArrayGetID

Retrieves the IID of the interface for a SafeArray of objects.

_SafeArrayGetID($pSafeArray, ByRef $pIID)

Parameters

$pSafeArray Pointer to the SafeArray.
$pIID [out] Pointer to a GUID structure containing the IID.

Return Value

Success: 0 (S_OK).
Failure: Non-zero HRESULT and sets @error:
1 - Invalid SafeArray pointer.
2 - DllCall failure.

Remarks

Typically used for SafeArrays containing objects (e.g., VT_DISPATCH, VT_UNKNOWN). The IID is stored in a
GUID structure. In AutoIt, this is rarely needed due to high-level COM handling.

Related

_SafeArrayGetVartype, __PtrToIDispatch