/// <summary> /// Terminate a query. This routine is used in the rare cases that consumption of the /// tuple stream produced should be prematurely terminated. It is automatically /// called when a new query using the same query handle is shipped to the database /// and when the query handle is closed with mapi_close_handle(). /// </summary> /// <param name="hdl"></param> /// <returns></returns> public static MapiMsg MapiFinish(MapiHdl hdl) { return(new MapiMsg(CMapiLib.mapi_finish(hdl.Ptr))); }