conn
is the connection descriptor established by a previous call to mi_open() or mi_server_connect().
user_data
is a generic pointer normally used to point to a user-defined data structure. The application developer can use this structure for storing information related to the connection.
Yes
MI_OK
The function was successful.
MI_ERROR
The function was not successful.