conn
is the connection descriptor established by a previous call to mi_open() or mi_server_connect().
Yes
MI_OK
The function was successful.
MI_ERROR
The function was not successful. The current statement failed or no statement is being processed.