Re: how to know if this computer is BT enabled ?
Re: how to know if this computer is BT enabled ?
- Subject: Re: how to know if this computer is BT enabled ?
- From: Bubba Giles <email@hidden>
- Date: Mon, 12 Jul 2004 10:21:54 -0700
You can do this:
BOOL hasADevice;
hasADevice = IOBluetoothLocalDeviceAvailable();
Or
hasADevice = (kIOReturnSuccess == IOBluetoothGetVersion( NULL, NULL ));
These functions can be found in IOBluetooth/IOBluetoothUserLib.h.
jason
>
hi !
>
>
i'm creating a BT enabled application and i need to disable most
>
controls if the machine is not BT enabled (has no internal BT dongle or
>
USB dongle...)
>
>
is there a *simple* API to know that ? i would prefer avoiding using
>
low level stuff... my only idea is to look for a device called
>
"cu.Bluetooth-Modem" in /dev/ but i find it too hacky...
>
>
thanks !
>
_______________________________________________
>
bluetooth-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.