public static bool getCardUseInfo(long Card, int RestCode, int UnitNo, ref TCardUseInfo cardInfo) { bool flag; try { cardInfo.Size = (ushort)Marshal.SizeOf(typeof(TCardUseInfo)); if (GetCardUseInfo(Card, RestCode, UnitNo, ref cardInfo)) { LastMsg = "The request GetCardUseInfo is successful"; return(true); } LastMsg = "NOT FOUND " + GetError(); flag = false; } catch (Exception e) { LastMsg = e.ToString(); flag = false; } return(flag); }
private static extern bool GetCardUseInfo(long Card, int RestCode, int UnitNo, ref TCardUseInfo Info);