Retrieves an element from a SafeArray using the specified indices.
_SafeArrayGetElement($pSafeArray, ByRef $aIndices)
| $pSafeArray | Pointer to the SafeArray. |
| $aIndices | Array of indices for accessing the element (AutoIt order). |
| Success: | The value of the element (converted to AutoIt type). |
| Failure: | 0 and sets @error: 1 - Invalid SafeArray pointer. 2 - Invalid dimensions or SafeArray access error. 3 - Mismatch between indices and SafeArray dimensions. 4 - Failed to retrieve element (DllCall failure). 5 - SafeArray does not contain VARIANT elements. |