Re: How to detect presence of Bluetooth adapter
Hi Eric, You should call "IOBluetoothLocalDeviceAvailable", from IOBluetoothUserLib.h: / /----------------------------------------------------------------------- --------------------------------------------------- /*! @function IOBluetoothLocalDeviceAvailable @abstract Determines if a bluetooth device is available on a local machine or not. @result A Boolean value. TRUE if a Bluetooth device is connected to the local machine, FALSE otherwise. @discussion Determines if a bluetooth device is available on a local machine or not. */ extern Boolean IOBluetoothLocalDeviceAvailable(); ... Marco On Wednesday, April 9, 2003, at 04:17 PM, Crichlow, Eric wrote:
Is there a way to detect whether or not a Bluetooth adapter is
attached
to the system before attempting Bluetooth operations?
I would like to be able to do this before ever calling any
Bluetooth
function, as opposed to relying on the error value returned by trying
to
make a Bluetooth function call, since items in my user interface
should be
disabled from the start based on whether or not Bluetooth is enabled.
...Thanx...
...Eric...
_______________________________________________
bluetooth-dev mailing list | bluetooth-dev@lists.apple.com
Help/Unsubscribe/Archives:
Do not post admin requests to the list. They will be ignored.
_______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Marco Pontil