Re: reading PDA's device ID
- From: "Ron Weiner" <rweiner@xxxxxxxxxxxxx>
- Date: Wed, 18 Apr 2007 07:03:02 -0400
No, the desktop app executes the win CE program (with command line args to
tell the CE app which function to run) via RAPI CeCreateProcess() function.
I am using this method to:
Get the DeviceID
Set the date/time and time zone on the device
Perform various and sundry maintenance items on a Sql Database that our app
uses.
Perform a warm or cold boot
All in all it has saved me lots of time for not much effort.
"Johnson" <Johnson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7DD3B6A0-C18B-43B6-96A9-43CD2DABF6A3@xxxxxxxxxxxxxxxx
Hi
thanks for your reply.
when u connect ur pda to the desktop, do you need to execute the window ce
app manually before the text file can be generated for the desktop
application to read the texf file?
Pls advise.
Thanks
--
Johnson
"Ron Weiner" wrote:
Johnson
I had the same requirement and decided to look in my tool box for the
biggest Kludge wrench I had. Here is what I came up with.
First I wrote a little Win CE app (using compact framework 1.0) to run on
the device (Win 2003 moile) with no user interface that would get the
Device
ID, and save it to a text file in the same directory as the exe was run
from.
Then I wrote a desktop app that using RAPI copies this exe over to the
device and executes it. The desktop app waits (in a loop) till the text
file has been created. Then it opens the text file to read it's contents
(either a Device ID or an error code). Lastly it deletes both the exe
and
the text file.
Even with all of the copy, execute, read, and delete stuff it takes only
a
second or two to do its work. I have since expanded this Win CE
application
to take command line parms and perform a bunch of other cool stuff (at
least
to me) that makes it easier for me to manage about 100 PDA's in the
fleet.
Ron W
"Johnson" <Johnson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B99F544C-11F6-4B3B-928F-4C5C966C5BA9@xxxxxxxxxxxxxxxx
Hi ,
does anyone know how to read PDA's device ID from a desktop's window
application? I tried using OpenNetCF but it only allow me to read the
device
ID from PDA application directly but cant find any api which i can use
in
desktop application to read the PDA's device ID directly.
Hope anyone there can help me in this.
Thanks
--
Johnson
.
- Follow-Ups:
- Re: reading PDA's device ID
- From: Johnson
- Re: reading PDA's device ID
- References:
- Re: reading PDA's device ID
- From: Ron Weiner
- Re: reading PDA's device ID
- From: Johnson
- Re: reading PDA's device ID
- Prev by Date: Re: kow to call the ConnMgrEstablishConnectionSync()?
- Next by Date: Re: Japanese fonts on Pocket PC
- Previous by thread: Re: reading PDA's device ID
- Next by thread: Re: reading PDA's device ID
- Index(es):
Relevant Pages
|