find out device neme of a pocket pc  
Author Message
Paby





PostPosted: Fri Apr 14 16:16:58 CDT 2006 Top

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

Thanks

Werner Leupold

Information Technology403  
 
 
Alex





PostPosted: Fri Apr 14 16:16:58 CDT 2006 Top

Compact >> find out device neme of a pocket pc You can query device registry - it's under HKLM\Ident\Name

"Werner Leupold" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Hi NG,
> how can I find out the device name of a pocket pc when connecting with
> rapi?
>
> Thanks
>
> Werner Leupold
>

 
 
Alex





PostPosted: Fri Apr 14 16:22:46 CDT 2006 Top

Compact >> find out device neme of a pocket pc It's in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\Partners

-Alex

"Werner Leupold" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Hi NG,
> how can I find out the device name of a pocket pc when connecting with
> rapi?
>
> Thanks
>
> Werner Leupold
>


 
 
WernerLeupold





PostPosted: Sat Apr 15 02:36:01 CDT 2006 Top

Compact >> find out device neme of a pocket pc 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


"Alex Yakhnin" wrote:

> It's in the registry:
>
> HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\Partners
>
> -Alex
>
> "Werner Leupold" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> > Hi NG,
> > how can I find out the device name of a pocket pc when connecting with
> > rapi?
> >
> > Thanks
> >
> > Werner Leupold
> >
>
>
>
 
 
ctacke/>





PostPosted: Sat Apr 15 22:30:59 CDT 2006 Top

Compact >> find out device neme of a pocket pc Well you don't show your calling code or the fact that you've called
CeRapiInit or any clue about a return code....

-Chris

"Werner Leupold" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> 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
>
>
> "Alex Yakhnin" wrote:
>
>> It's in the registry:
>>
>> HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\Partners
>>
>> -Alex
>>
>> "Werner Leupold" <EMail@HideDomain.com> wrote in
>> message
>> news:EMail@HideDomain.com...
>> > Hi NG,
>> > how can I find out the device name of a pocket pc when connecting with
>> > rapi?
>> >
>> > Thanks
>> >
>> > Werner Leupold
>> >
>>
>>
>>


 
 
WernerLeupold





PostPosted: Sun Apr 16 01:06:01 CDT 2006 Top

Compact >> find out device neme of a pocket pc 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

"<ctacke/>" wrote:

> Well you don't show your calling code or the fact that you've called
> CeRapiInit or any clue about a return code....
>
> -Chris
>
> "Werner Leupold" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> > 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
> >
> >
> > "Alex Yakhnin" wrote:
> >
> >> It's in the registry:
> >>
> >> HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\Partners
> >>
> >> -Alex
> >>
> >> "Werner Leupold" <EMail@HideDomain.com> wrote in
> >> message
> >> news:EMail@HideDomain.com...
> >> > Hi NG,
> >> > how can I find out the device name of a pocket pc when connecting with
> >> > rapi?
> >> >
> >> > Thanks
> >> >
> >> > Werner Leupold
> >> >
> >>
> >>
> >>
>
>
>