/// <summary> /// Close the current channel (if still open) and re-establish a fresh connection. /// This will remove all global session variables. /// </summary> /// <param name="mapi"></param> /// <returns></returns> public static MapiMsg MapiReconnect(MapiConnection mapi) { return(new MapiMsg(CMapiLib.mapi_reconnect(mapi.Ptr))); }