void getCardConfigEx(IntPtr sdkContext, UInt32 deviceID, bool isMasterDevice) { BS2CardConfigEx config; Console.WriteLine("Trying to get CardConfigEx"); BS2ErrorCode result = (BS2ErrorCode)API.BS2_GetCardConfigEx(sdkContext, deviceID, out config); if (result != BS2ErrorCode.BS_SDK_SUCCESS) { Console.WriteLine("Got error({0}).", result); } else { print(sdkContext, config); } }