RE: BthGetBasebandConnections return value

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Greg Scott [MS] (gregsco_at_online.microsoft.com)
Date: 03/16/04


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.
|
|
|



Relevant Pages

  • Re: BthGetBasebandConnections return value
    ... editing the MS stack causes issues with BQB certification costs. ... BthGetBasebandConnections is telling me what I need to know for whether ... this is not the best API for you to use. ... > If you want to know if there are currently baseband connections present ...
    (microsoft.public.windowsce.platbuilder)
  • Re: BthGetBasebandConnections return value
    ... Stack down but hardware is present ... | BthGetBasebandConnections is telling me what I need to know for whether ... For this API, if pConnections is too small to contain ...
    (microsoft.public.windowsce.platbuilder)
  • Re: TCP server performance
    ... but it would be torture to create serious user app with such ... message that stack plus heap exceed 64K limit (really that was not windows ... with one thread for every 64 connections, ... Standard multithreaded server where each connection is handled ...
    (microsoft.public.win32.programmer.networks)
  • Re: C Stack Corruption?
    ... and it seems that I'm getting some stack ... >corruption after any API call. ... It accepts a call from one compiler module, ... >values after any IBM API call. ...
    (comp.lang.c)
  • Re: [RFC][PATCH 0/6] mm, highmem: kmap_atomic rework
    ... static slot based. ... course its a big massive patch changing a widely used API. ... We don't have any checks in there for the stack overflowing? ...
    (Linux-Kernel)