Re: reading PDA's device ID

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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





.



Relevant Pages

  • Re: private Deploy of SQL CE 3.1
    ... my app is always a newer one than whatever is in ROM, ... device uses 3.1 dlls. ... All was fine as long as my desktop app was ... I privately deploy my SqlCe DLLs with my apps, ...
    (microsoft.public.sqlserver.ce)
  • Re: private Deploy of SQL CE 3.1
    ... my app is always a newer one than whatever is in ROM, ... device uses 3.1 dlls. ... All was fine as long as my desktop app was ... I also found that in Platform builder when I removed "sql mobile" ...
    (microsoft.public.sqlserver.ce)
  • Re: private Deploy of SQL CE 3.1
    ... my app is always a newer one than whatever is in ROM, ... device uses 3.1 dlls. ... All was fine as long as my desktop app was ... I also found that in Platform builder when I removed "sql mobile" ...
    (microsoft.public.sqlserver.ce)
  • Re: private Deploy of SQL CE 3.1
    ... I also privately deploy SqlCe DLLs for a couple of desktop apps that use SqlCe and never had any issues, and I have customers running a mix of Xp and Vista as well as various server versions. ... I thought it was a great idea when Windows Mobile first started including SqlCe in ROM, but now I find the version I want to use for my app is always a newer one than whatever is in ROM, no matter how recent the devices are. ... and my desktop App that manipulates the sdfs consumed by the CE ...
    (microsoft.public.sqlserver.ce)
  • Re: Newbie Q
    ... I have a Desktop App which captures users input, this input needs to be sent ... RAPI in the desktop app. ... Have the device app put them in the marker file and let the desktop ...
    (microsoft.public.pocketpc.phone_edition)