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