I am trying to use the Windows API to discover and communicate with Blue
Tooth devices. When I call WSALookupServiceBegin it works ok but
WSALookupServiceNext fails with 10050 Network Failure. Has anyone
successfully used the windows API to control the Blue Tooth on a iPaq? The
code for WSALookupServiceNext is below.

PBYTE pOut = (PBYTE)LocalAlloc (LPTR, MYBUFFSIZE);
if (!pOut) return -1;
WSAQUERYSET *pQueryResult = (WSAQUERYSET *)pOut;
for (i = 0; i < nMax; i++) {
dwLen = MYBUFFSIZE;
dwFlags = LUP_RETURN_NAME | LUP_RETURN_ADDR;
rc = WSALookupServiceNext (hLookup, dwFlags, &dwLen, pQueryResult);
if (rc == SOCKET_ERROR) {
rc = GetLastError();
break;
}

Re: Bluetooth Hp Pocket PC 5450 and Windows CE 4.2 API by Alberto

Alberto
Sun Jan 04 07:11:19 CST 2004

Hi,
Several reasons prevent you from using the CE 4.2 Bluetooth functions:

1st. The h5450, even with the WM2003 upgrade isn't a 'plain' CE 4.2 device.
If you look at the WM 2003 SDK you'll see that not all the CE 4.2 BT
functions are available on WM 2003
2nd. Those API functions are intended for devices using the Microsoft
BlueTooth stack. The h5450 use the Widcomm BT stack...

To control BT programatically on the h5450 you should use the Widcomm SDK or
the one from http://www.high-point.com

Regards,
Alberto Silva

"Koby" <Koby@zianet.com> wrote in message
news:OywUT$l0DHA.2156@TK2MSFTNGP12.phx.gbl...
> I am trying to use the Windows API to discover and communicate with Blue
> Tooth devices. When I call WSALookupServiceBegin it works ok but
> WSALookupServiceNext fails with 10050 Network Failure. Has anyone
> successfully used the windows API to control the Blue Tooth on a iPaq? The
> code for WSALookupServiceNext is below.
>
> PBYTE pOut = (PBYTE)LocalAlloc (LPTR, MYBUFFSIZE);
> if (!pOut) return -1;
> WSAQUERYSET *pQueryResult = (WSAQUERYSET *)pOut;
> for (i = 0; i < nMax; i++) {



Re: Bluetooth Hp Pocket PC 5450 and Windows CE 4.2 API by www

www
Sun Jan 04 07:24:38 CST 2004

In message <eMzM8Qs0DHA.1676@TK2MSFTNGP12.phx.gbl>, "Alberto Silva - MVP"
<albertosilva@mundomovel.removeuntildot.com> wrote:
>
> 2nd. Those API functions are intended for devices using the Microsoft
> BlueTooth stack. The h5450 use the Widcomm BT stack...
>

I have Toshiba e800 WiFi. Question: which CF or SDIO card uses Microsoft
Bluetooth stack, so that I could use it in my Toshiba?

--
http://msmobiles.com - all about Microsoft
Smartphone and Pocket PC phone.

http://dotnetdn.com - latest .NET CF news.


Re: Bluetooth Hp Pocket PC 5450 and Windows CE 4.2 API by Rob

Rob
Mon Jan 05 14:22:21 CST 2004

I've been using the SDK from Highpoint and it works well on the h5450
device.

"Alberto Silva - MVP" <albertosilva@mundomovel.removeuntildot.com> wrote in
message news:eMzM8Qs0DHA.1676@TK2MSFTNGP12.phx.gbl...
> Hi,
> Several reasons prevent you from using the CE 4.2 Bluetooth functions:
>
> 1st. The h5450, even with the WM2003 upgrade isn't a 'plain' CE 4.2
device.
> If you look at the WM 2003 SDK you'll see that not all the CE 4.2 BT
> functions are available on WM 2003
> 2nd. Those API functions are intended for devices using the Microsoft
> BlueTooth stack. The h5450 use the Widcomm BT stack...
>
> To control BT programatically on the h5450 you should use the Widcomm SDK
or
> the one from http://www.high-point.com
>
> Regards,
> Alberto Silva
>
> "Koby" <Koby@zianet.com> wrote in message
> news:OywUT$l0DHA.2156@TK2MSFTNGP12.phx.gbl...
> > I am trying to use the Windows API to discover and communicate with Blue
> > Tooth devices. When I call WSALookupServiceBegin it works ok but
> > WSALookupServiceNext fails with 10050 Network Failure. Has anyone
> > successfully used the windows API to control the Blue Tooth on a iPaq?
The
> > code for WSALookupServiceNext is below.
> >
> > PBYTE pOut = (PBYTE)LocalAlloc (LPTR, MYBUFFSIZE);
> > if (!pOut) return -1;
> > WSAQUERYSET *pQueryResult = (WSAQUERYSET *)pOut;
> > for (i = 0; i < nMax; i++) {
>
>