public static int GetResultAPI(int res) { if (res != 0) { if (res == -405) { MessageBox.Show(StringFromNativeUtf8(Cbposlib.getResponseStateCodeDescription()) + "\n" + ResultStateMessage(), "Ошибка"); return(1); } MessageBox.Show(StringFromNativeUtf8(Cbposlib.GetErrorMessage(res)), "Ошибка"); return(1); } return(0); }