What is the API for getting the OS type? Windows CE or Windows mobile?
Environment.OSVersion
just gives the CE version. It does not provide information if 'Windows Mobile' is installed on the device.
See these blog articles on Platform detection: