Getting the Device Name

G

Guest

I have read a few threads about this, but I am still not getting anywhere. I
have VS.NET 2003 on my machine and need to write a VB.NET Win App that gets
the Device Name of the Pocket PC connected to the users computer. What
libraries do I need, where do I get them, and how do I install them?

Thank you,Anthony
 
G

Guest

I am not familiar with using the registry so I do not know what to use to
actually "read" the value. What tools can I use from VS.NET/VB.NET 2003 to
get the device name.
 
P

Paul G. Tobey [eMVP]

OK, so to rephrase what you're saying:

1. You want a program to run on the desktop.

2. The program must query the attached Windows CE-based device and return
the 'device name' (whatever that means).

Seeing 1, you should immediately think: "OK, that means that I have to use
the Remote API, RAPI." Seeing 2, you should think, "OK, now I need to
search the archives of the .NET CF group using Google (at the link below),
to see how to remotely access the device name." This type of question
(device name), has been asked very recently.

http://groups-beta.google.com/group...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Since you want to use RAPI and write your program in C# or VB.NET, you
should think to yourself, "OK, I should see what OpenNETCF has for this."
Go to www.opennetcf.org and you want to get the desktop library (which wraps
RAPI with a nice managed code wrapper). You'll use it to remotely read the
registry key specified by crino in the previous message. If the result is
what you mean by "device name", you're done.

Paul T.
 

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