Converts an AutoIt array to a COM SafeArray.
_SafeArrayFromAutoItArray(ByRef Const $aArray)
| $aArray | AutoIt array to convert (1 to 5 dimensions). |
| Success: | Pointer to the created SafeArray. |
| Failure: | 0 and sets @error: 1 - Input is not an array. 2 - Invalid dimensions (0 dimensions). 3 - Invalid dimension size (<= 0). 4 - Failed to create SafeArray. 6 - Too many dimensions (> 5). |