public static bool GetAllAccounts(ref List <TAccountInfo> listAccountsInfo) { bool flag; try { ListAccountsInfo.Clear(); EnumAccountsCallback callback = new EnumAccountsCallback(AddAccount); if (GetAllAccounts(callback)) { LastMsg = "The request GetAllAccounts is successful"; listAccountsInfo = ListAccountsInfo; return(true); } LastMsg = GetError(); flag = false; } catch (Exception exception1) { LastMsg = exception1.ToString(); flag = false; } return(flag); }
private static extern bool GetAllAccounts(EnumAccountsCallback callback);