I'm using an abstract hardware class and #ifdef-statements to surround the code specific for CE and Mobile hardware-calls. You should also get the machine-name from the device in order to know which
- read about the "#define"/"#ifdef" statements from C language - it allows to replace parts of code with different code, so the same source can be re-compiled for both Windows and