RE: BthGetBasebandConnections return value
From: Greg Scott [MS] (gregsco_at_online.microsoft.com)
Date: 03/16/04
- Next message: Greg Scott [MS]: "RE: Bluetooth Headset Audio Gateway source Code question ."
- Previous message: Inger: "Problems loading eboot.bin as Kernel file"
- In reply to: Matthew Townsend: "BthGetBasebandConnections return value"
- Next in thread: Matthew Townsend: "Re: BthGetBasebandConnections return value"
- Reply: Matthew Townsend: "Re: BthGetBasebandConnections return value"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Mar 2004 16:19:01 GMT
This would return ERROR_SERVICE_NOT_ACTIVE if the stack has not been
initialized yet. For this API, if pConnections is too small to contain the
buffer it should return ERROR_INSUFFICIENT_BUFFER.
In any case, this is not the best API for you to use. You want to call
BthGetHardwareStatus - see PB Help.
This API will tell you:
- Stack is down, hardware is not present
- Stack is down, but hardware is present
- Stack is up and running
Plus a few other states - See PB Help for details.
If you want to know if there are currently baseband connections present
then you should also call BthGetBasebandConnections (or
BthGetBasebandHandles). If the stack is up and running this API should
return successfully. Make sure you call the API with a large enough buffer
to store the resulting data.
I hope this helps.
Greg Scott
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________
--------------------
| From: "Matthew Townsend" <hyiothesia_rem0ve_this_part_@hotmail.com>
| Subject: BthGetBasebandConnections return value
| Date: Mon, 15 Mar 2004 11:17:21 -0800
| Lines: 22
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eHNJRJsCEHA.240@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.windowsce.platbuilder
| NNTP-Posting-Host: 207.108.63.217
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsce.platbuilder:47080
| X-Tomcat-NG: microsoft.public.windowsce.platbuilder
|
| I call this funtion to determine if the device is actively connected to
| something, not actively connected, or not running.
|
| if return value == ERROR_SERVICE_NOT_ACTIVE is supposed to indicate that
| "the hardware is not inserted or that the Bluetooth stack is not present"
-
| does not work
|
| if (pConnections > 0) tells me that it is connected - works
| else it is not connected - works
|
| The return value is ERROR_SUCCESS even when the device is powered off!
|
| Am I doing something wrong?
|
| Any idea how I can determine if the device is not on and connected via HCI
| to the stack?
|
| Why am I not getting the expected return value?
|
| Thanks.
|
|
|
- Next message: Greg Scott [MS]: "RE: Bluetooth Headset Audio Gateway source Code question ."
- Previous message: Inger: "Problems loading eboot.bin as Kernel file"
- In reply to: Matthew Townsend: "BthGetBasebandConnections return value"
- Next in thread: Matthew Townsend: "Re: BthGetBasebandConnections return value"
- Reply: Matthew Townsend: "Re: BthGetBasebandConnections return value"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|