Detecting if App is running on C5

Detecting if App is running on C5

imagem de csantonio

Is there a way to for an application to detect if it is running on a C5. The idea is to execute a code path specific for the C5, and if the app detects that it is not running on a C5 take a different execution path. Does the API provide some type of flag to confirm execution is being performed on the Motion C5?

Thanks,

-Clifton

3 posts / 0 new
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de Steven Murray (Intel)

Hi Clifton,

The MCA platform detection only takes place when you go to reserve a device via the plug-in. If the plug-ins are different because of different devices, then the device calls will all fail (if they even get made). So in theory, you could run an MCA platform driver for the C5 on any system that had the exact same RFID, camera, and barcode hardware.

I would suggest you contact Motion to see if they have a registry key or a BIOS call you can make to determine if the hardware platform you are running on is a C5. Otherwise you could check for devices, by reserving the barcode reader or one of the others using the reserve function. You can then check the return code from the reservation, and then branch down the code path that you want.

Thanks,
Steve

imagem de csantonio

Thanks Steve.

-Clifton

Faça login para deixar um comentário.