Platform Identifier function in RAPI

G

Guest

Hi!!!!

As a small request, it would be so great to have a function in the RAPI
library to identify the platform of the current connected PDA. That will
definitelly help my deployment program for my PDA's application.

Thanks in advance!

Tarh ik
 
P

Peter Foot [MVP]

Once you have established a connection with RAPI and know that the device is
currently connected, you can interrogate a number of ActiveSync keys in the
desktop registry for example:-
HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services
Contains
DeviceType e.g. Smartphone, PocketPC etc
DeviceOemInfo e.g. PH10B for a HTC Himalaya PPC Phone Edition (this is the
model number but Oem may place a model name or other identifier here)
DeviceProcessorType e.g. 2577 (ARM family)

Peter
 
G

Guest

Thanks for your feedback, Peter!!!!

I actually tried to use those same registry keys to identify the PDA's
platform. The problem is that when I tested the installer with real devices,
both fields were empty. This might not be the device's fault since it was
able to execute the programs I created with Visual Studio 2003 using the
compact framework... although I must admit that the device was a little bit
old.

To cover all basis, I'm going to do what you suggest (by using
CEUtil.lib & RAPI.lib):
1. I'm going to get the DeviceType registry value.
2. If the DeviceType key is empty, I'll get the Operating System version: If
is 3, I'll install the CABS for PPC.
3. However, if the Operating System version is 4 or newer, I'm going to get
the dimentions of the screen: If its Height is bigger than its Width then
I'll install the CABS for PPC. On the other hand, if its Width is bigger than
its height then I'll install the CABS for Windows CE.

Thansk!!!!!!

Best Regards,

Tarh ik
PS: This posting has been posted "AS IS"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top