pappaxray wrote:bool retVal = KernelIoControl(IOCTL_HAL_GET_DEVICEID, ...);
It is not so difficult to intercept this (or any other) function and force it to return a predefined value. Thus your game would be carded one time, and a cracker would release an universal loader.
You should also use some other information. For phone-edition devices IMEI is a good thing to check, the date/time of NK.EXE file is also a constant, unless the device is reflashed (you should check GMT time and not local time that depends on timezone and would change if the user travels). Owner name is too easy to modify, but you should also check it.
Moving the checking part of protection and several not time-critical parts of the game (for example level loading for levels starting after the shareware-limit) to some script-language that would be interpreted at runtime would be a real pain for a cracker. Your game may check in several places if the script is modified or use several different scripts. You should not use any of the well-known scripting languages. I used SeeR in my projects -
http://przemekp.prv.pl/seer, it can be ported for PocketPC and slightly modified to be unrecognizeable.
SeeR code is similar to C++, so you can debug your program without it and later move some procedures to script with minor midifications.
You can encrypt some parts of the script and decrypt it by serial number (simple XOR would be enough, this part is usually easy to crack), or serial number may contain several bytes of this script. For example you may have one unencrypted script that checks that serial number has a valid format and decrypts the second script that contains some of the game logic and rest of the protection checks. It is much easier than encrypting code in your EXE file. But this part can be cracked having one valid serial number.
Also use as much as possible SEH and C++ exceptions in your protection. eVC and VS2005 debugger don't like them.
Using these techniques correctly would give you several days or even weeks before a crack would appear.
And remember what +Orc said: "if it runs, it can be defeated".