find out device neme of a pocket pc

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi NG,
how can I find out the device name of a pocket pc when connecting with rapi?

Thanks

Werner Leupold
 
It's in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\Partners

-Alex
 
Thank you, but that is not what I wanted to know.
I want to find out the name of the connected device by using the RAPI
functions searching within the registry of the device.

There is a function I used in VB6:

Declare Function CeRegOpenKeyEx Lib "rapi.dll" ( _
ByVal hkey As Long, _
ByVal lpSubKey As Long, _
ByVal ulOptions As Long, _
ByVal samDesired As Long, _
phkResult As Long) As Long

but it seems not to work properly in VB.Net

Any idea?

Thanks Werner
 
Well you don't show your calling code or the fact that you've called
CeRapiInit or any clue about a return code....

-Chris
 
Well, it's much easier than I thought:

System.Net.Dns.GetHostName.ToString()

I wanted to adapt a VB6 code, that was the problem.

Thanks Werner
 
Back
Top