public static extern int adl_getBankId(IntPtr device, ref Bank bank, out BankId id);
public static extern int adl_getBank(IntPtr device, ref BankId id, BankAccessFlags flags, out Bank bank);