c# - What's the best way to identify a WinCE device and call a correct DLL based on the results? -


i've been struggling while. have different devices need run corporate app on. written using .net cf 1.1. both have own managed dlls need called serial number off gun.

i have yet find safe way call one, , if fails, move on call next. exception occurs outside of application , can't caught, crashing app.

these dlls copied in software, can't file check on device.

is there guys can think of allow me identify 1 device on other without hard crashing , let me call appropriate dll without problem?

i did using referenced dlls directly, through reflection (one dll need methodinfo.invoke, , other field value).

any , appreciated. thank you!

p/invoke systemparametersinfo spi_getoeminfo see if oem has provided platform-specific string can for. oems have own specific registry entries platform name, might able remote registry viewer , switch on if find one.

edit

there's example of this, detecting barcode scanner manufacturer no less, on msdn.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -