Re: about bluetooth status detect???

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

If you use WM 5.0, you can use the new State and Notifications Broker
API to retrieve system state information, there are lot of
functionnalities :
using Microsoft.WindowsMobile.Status then :
SystemState.ConnectionsBluetoothDescriptions
you will get a semicolon delimited string containing the description of

each of the Bluetooth connections...


BR


Fabien Decret
Windows Embedded Consultant


ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



Peter Foot [MVP] a écrit :

It depends on the stack used on the device. For devices with the Microsoft
stack you can P/Invoke the BthGetMode API, or use this existing wrapper
library - http://32feet.net

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"shany" <shany_cn@xxxxxxxxxxx> wrote in message
news:%23au0FHW3GHA.2152@xxxxxxxxxxxxxxxxxxxxxxx
Hi~
I'v developed a programme by Vb & .Net and it works well in wm5.0.
In the programme bluetooth working as a COM port.But there is a problem :
it can't detect bluetooth's status!
if bluetooth has been opend in system, it's OK. if not an "IOException"
would occur.
How can I solve this bug?

In programme I just simply open Com port like this :
--
shany
2006.9.21


.



Relevant Pages

  • Re: Welches Linux zu Beginn und wo drauf?
    ... die also eine Modifikation des Quelltextes erfordert. ...
    (de.comp.os.unix.linux.hardware)
  • Re: Messgeraete-Steuerung ueber Excel etc?
    ... Doch, kannst du, natuerlich kann man auch unter Windows eine serielle ... Diese Programmiermethode hat es nicht in Lunux geschafft, weil bei Linux Leute ... wie Kai sitzen, die meinen, mit dem primitiven flie API wäre alles erledigt. ... Dort bleiben bis heute Programme einfach stehen, ...
    (de.sci.electronics)
  • Elektra 0.7.0
    ... Projekt geht es um eine API und Datenstrukturen um alle anderen Libraries ... und natürlich auch eigenen Parser und Generatorcode mittels Backends ... Der erste Schritt war die Festlegung der API, ... Der wichtigste Nebeneffekt einer solchen Abstraktion (das Programme ...
    (de.comp.os.unix.programming)
  • Re: BlueTooth
    ... Markus Keller wrote: ... ich mache seit Jahren Bluetooth und habe dafür High Level API's unde dergleichen entwickelt. ... Es gehen keine .NET Socket API's weil die Bluetooth ... FSQUIRT.EXE enthalten und damit API mäßig nicht zu benutzen. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: using serial port using APIs
    ... API solution would help you, MSComm could not have possibly be slower than ... > programme that there is data available? ...
    (microsoft.public.vb.winapi)