Classes | Defines | Typedefs | Functions

BluetoothAPIs.h File Reference

Go to the source code of this file.

Classes

struct  _BLUETOOTH_ADDRESS
struct  _BLUETOOTH_FIND_RADIO_PARAMS
struct  _BLUETOOTH_RADIO_INFO
struct  _BLUETOOTH_DEVICE_INFO
struct  _BLUETOOTH_DEVICE_SEARCH_PARAMS
struct  _BLUETOOTH_COD_PAIRS
struct  _BLUETOOTH_SELECT_DEVICE_PARAMS
struct  _SDP_ELEMENT_DATA
struct  _SDP_STRING_TYPE_DATA

Defines

#define BLUETOOTH_MAX_NAME_SIZE   (248)
#define BLUETOOTH_MAX_PASSKEY_SIZE   (16)
#define BLUETOOTH_MAX_PASSKEY_BUFFER_SIZE   (BLUETOOTH_MAX_PASSKEY_SIZE + 1)
#define BLUETOOTH_ADDRESS   BLUETOOTH_ADDRESS_STRUCT
#define BLUETOOTH_NULL_ADDRESS   ( (ULONGLONG) 0x0 )
#define BLUETOOTH_DEVICE_INFO   BLUETOOTH_DEVICE_INFO_STRUCT
#define BLUETOOTH_SERVICE_DISABLE   0x00
#define BLUETOOTH_SERVICE_ENABLE   0x01
#define BLUETOOTH_SERVICE_MASK   ( BLUETOOTH_ENABLE_SERVICE | BLUETOOTH_DISABLE_SERVICE )
#define BluetoothEnumAttributes   BluetoothSdpEnumAttributes

Typedefs

typedef ULONGLONG BTH_ADDR
typedef struct _BLUETOOTH_ADDRESS BLUETOOTH_ADDRESS_STRUCT
typedef struct
_BLUETOOTH_FIND_RADIO_PARAMS 
BLUETOOTH_FIND_RADIO_PARAMS
typedef HANDLE HBLUETOOTH_RADIO_FIND
typedef struct
_BLUETOOTH_RADIO_INFO 
BLUETOOTH_RADIO_INFO
typedef struct
_BLUETOOTH_RADIO_INFO
PBLUETOOTH_RADIO_INFO
typedef struct
_BLUETOOTH_DEVICE_INFO 
BLUETOOTH_DEVICE_INFO_STRUCT
typedef BLUETOOTH_DEVICE_INFO * PBLUETOOTH_DEVICE_INFO
typedef struct
_BLUETOOTH_DEVICE_SEARCH_PARAMS 
BLUETOOTH_DEVICE_SEARCH_PARAMS
typedef HANDLE HBLUETOOTH_DEVICE_FIND
typedef struct _BLUETOOTH_COD_PAIRS BLUETOOTH_COD_PAIRS
typedef BOOL(WINAPI * PFN_DEVICE_CALLBACK )(LPVOID pvParam, PBLUETOOTH_DEVICE_INFO pDevice)
typedef struct
_BLUETOOTH_SELECT_DEVICE_PARAMS 
BLUETOOTH_SELECT_DEVICE_PARAMS
typedef HANDLE HBLUETOOTH_AUTHENTICATION_REGISTRATION
typedef BOOL(* PFN_AUTHENTICATION_CALLBACK )(LPVOID pvParam, PBLUETOOTH_DEVICE_INFO pDevice)
typedef struct _SDP_ELEMENT_DATA SDP_ELEMENT_DATA
typedef struct _SDP_ELEMENT_DATAPSDP_ELEMENT_DATA
typedef HANDLE HBLUETOOTH_CONTAINER_ELEMENT
typedef struct
_SDP_STRING_TYPE_DATA 
SDP_STRING_TYPE_DATA
typedef struct
_SDP_STRING_TYPE_DATA
PSDP_STRING_TYPE_DATA
typedef BOOL(CALLBACK * PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK )(ULONG uAttribId, LPBYTE pValueStream, ULONG cbStreamSize, LPVOID pvParam)

Functions

HBLUETOOTH_RADIO_FIND WINAPI BluetoothFindFirstRadio (BLUETOOTH_FIND_RADIO_PARAMS *pbtfrp, HANDLE *phRadio)
BOOL WINAPI BluetoothFindNextRadio (HBLUETOOTH_RADIO_FIND hFind, HANDLE *phRadio)
BOOL WINAPI BluetoothFindRadioClose (HBLUETOOTH_RADIO_FIND hFind)
DWORD WINAPI BluetoothGetRadioInfo (HANDLE hRadio, PBLUETOOTH_RADIO_INFO pRadioInfo)
HBLUETOOTH_DEVICE_FIND WINAPI BluetoothFindFirstDevice (BLUETOOTH_DEVICE_SEARCH_PARAMS *pbtsp, BLUETOOTH_DEVICE_INFO *pbtdi)
BOOL WINAPI BluetoothFindNextDevice (HBLUETOOTH_DEVICE_FIND hFind, BLUETOOTH_DEVICE_INFO *pbtdi)
BOOL WINAPI BluetoothFindDeviceClose (HBLUETOOTH_DEVICE_FIND hFind)
DWORD WINAPI BluetoothGetDeviceInfo (HANDLE hRadio, BLUETOOTH_DEVICE_INFO *pbtdi)
DWORD WINAPI BluetoothUpdateDeviceRecord (BLUETOOTH_DEVICE_INFO *pbtdi)
DWORD WINAPI BluetoothRemoveDevice (BLUETOOTH_ADDRESS *pAddress)
BOOL WINAPI BluetoothSelectDevices (BLUETOOTH_SELECT_DEVICE_PARAMS *pbtsdp)
BOOL WINAPI BluetoothSelectDevicesFree (BLUETOOTH_SELECT_DEVICE_PARAMS *pbtsdp)
BOOL WINAPI BluetoothDisplayDeviceProperties (HWND hwndParent, BLUETOOTH_DEVICE_INFO *pbtdi)
DWORD WINAPI BluetoothAuthenticateDevice (HWND hwndParent, HANDLE hRadio, BLUETOOTH_DEVICE_INFO *pbtbi, PWCHAR pszPasskey, ULONG ulPasskeyLength)
DWORD WINAPI BluetoothAuthenticateMultipleDevices (HWND hwndParent, HANDLE hRadio, DWORD cDevices, BLUETOOTH_DEVICE_INFO *pbtdi)
DWORD WINAPI BluetoothSetServiceState (HANDLE hRadio, BLUETOOTH_DEVICE_INFO *pbtdi, GUID *pGuidService, DWORD dwServiceFlags)
DWORD WINAPI BluetoothEnumerateInstalledServices (HANDLE hRadio, BLUETOOTH_DEVICE_INFO *pbtdi, DWORD *pcServices, GUID *pGuidServices)
BOOL WINAPI BluetoothEnableDiscovery (HANDLE hRadio, BOOL fEnabled)
BOOL WINAPI BluetoothIsDiscoverable (HANDLE hRadio)
BOOL WINAPI BluetoothEnableIncomingConnections (HANDLE hRadio, BOOL fEnabled)
BOOL WINAPI BluetoothIsConnectable (HANDLE hRadio)
DWORD WINAPI BluetoothRegisterForAuthentication (BLUETOOTH_DEVICE_INFO *pbtdi, HBLUETOOTH_AUTHENTICATION_REGISTRATION *phRegHandle, PFN_AUTHENTICATION_CALLBACK pfnCallback, PVOID pvParam)
BOOL WINAPI BluetoothUnregisterAuthentication (HBLUETOOTH_AUTHENTICATION_REGISTRATION hRegHandle)
DWORD WINAPI BluetoothSendAuthenticationResponse (HANDLE hRadio, BLUETOOTH_DEVICE_INFO *pbtdi, LPWSTR pszPasskey)
DWORD WINAPI BluetoothSdpGetElementData (LPBYTE pSdpStream, ULONG cbSdpStreamLength, PSDP_ELEMENT_DATA pData)
DWORD WINAPI BluetoothSdpGetContainerElementData (LPBYTE pContainerStream, ULONG cbContainerLength, HBLUETOOTH_CONTAINER_ELEMENT *pElement, PSDP_ELEMENT_DATA pData)
DWORD WINAPI BluetoothSdpGetAttributeValue (LPBYTE pRecordStream, ULONG cbRecordLength, USHORT usAttributeId, PSDP_ELEMENT_DATA pAttributeData)
DWORD WINAPI BluetoothSdpGetString (LPBYTE pRecordStream, ULONG cbRecordLength, PSDP_STRING_TYPE_DATA pStringData, USHORT usStringOffset, PWCHAR pszString, PULONG pcchStringLength)
BOOL WINAPI BluetoothSdpEnumAttributes (LPBYTE pSDPStream, ULONG cbStreamSize, PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK pfnCallback, LPVOID pvParam)

Define Documentation

#define BLUETOOTH_ADDRESS   BLUETOOTH_ADDRESS_STRUCT
#define BLUETOOTH_DEVICE_INFO   BLUETOOTH_DEVICE_INFO_STRUCT
#define BLUETOOTH_MAX_NAME_SIZE   (248)
#define BLUETOOTH_MAX_PASSKEY_BUFFER_SIZE   (BLUETOOTH_MAX_PASSKEY_SIZE + 1)
#define BLUETOOTH_MAX_PASSKEY_SIZE   (16)
#define BLUETOOTH_NULL_ADDRESS   ( (ULONGLONG) 0x0 )
#define BLUETOOTH_SERVICE_DISABLE   0x00
#define BLUETOOTH_SERVICE_ENABLE   0x01
#define BLUETOOTH_SERVICE_MASK   ( BLUETOOTH_ENABLE_SERVICE | BLUETOOTH_DISABLE_SERVICE )
#define BluetoothEnumAttributes   BluetoothSdpEnumAttributes

Typedef Documentation

typedef ULONGLONG BTH_ADDR
typedef HANDLE HBLUETOOTH_DEVICE_FIND
typedef HANDLE HBLUETOOTH_RADIO_FIND
typedef BLUETOOTH_DEVICE_INFO* PBLUETOOTH_DEVICE_INFO
typedef BOOL(* PFN_AUTHENTICATION_CALLBACK)(LPVOID pvParam, PBLUETOOTH_DEVICE_INFO pDevice)
typedef BOOL(CALLBACK * PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK)(ULONG uAttribId, LPBYTE pValueStream, ULONG cbStreamSize, LPVOID pvParam)
typedef BOOL(WINAPI * PFN_DEVICE_CALLBACK)(LPVOID pvParam, PBLUETOOTH_DEVICE_INFO pDevice)

Function Documentation

DWORD WINAPI BluetoothAuthenticateDevice ( HWND  hwndParent,
HANDLE  hRadio,
BLUETOOTH_DEVICE_INFO *  pbtbi,
PWCHAR  pszPasskey,
ULONG  ulPasskeyLength 
)
DWORD WINAPI BluetoothAuthenticateMultipleDevices ( HWND  hwndParent,
HANDLE  hRadio,
DWORD  cDevices,
BLUETOOTH_DEVICE_INFO *  pbtdi 
)
BOOL WINAPI BluetoothDisplayDeviceProperties ( HWND  hwndParent,
BLUETOOTH_DEVICE_INFO *  pbtdi 
)
BOOL WINAPI BluetoothEnableDiscovery ( HANDLE  hRadio,
BOOL  fEnabled 
)
BOOL WINAPI BluetoothEnableIncomingConnections ( HANDLE  hRadio,
BOOL  fEnabled 
)
DWORD WINAPI BluetoothEnumerateInstalledServices ( HANDLE  hRadio,
BLUETOOTH_DEVICE_INFO *  pbtdi,
DWORD *  pcServices,
GUID *  pGuidServices 
)
BOOL WINAPI BluetoothFindDeviceClose ( HBLUETOOTH_DEVICE_FIND  hFind )
HBLUETOOTH_DEVICE_FIND WINAPI BluetoothFindFirstDevice ( BLUETOOTH_DEVICE_SEARCH_PARAMS pbtsp,
BLUETOOTH_DEVICE_INFO *  pbtdi 
)
HBLUETOOTH_RADIO_FIND WINAPI BluetoothFindFirstRadio ( BLUETOOTH_FIND_RADIO_PARAMS pbtfrp,
HANDLE *  phRadio 
)
BOOL WINAPI BluetoothFindNextDevice ( HBLUETOOTH_DEVICE_FIND  hFind,
BLUETOOTH_DEVICE_INFO *  pbtdi 
)
BOOL WINAPI BluetoothFindNextRadio ( HBLUETOOTH_RADIO_FIND  hFind,
HANDLE *  phRadio 
)
BOOL WINAPI BluetoothFindRadioClose ( HBLUETOOTH_RADIO_FIND  hFind )
DWORD WINAPI BluetoothGetDeviceInfo ( HANDLE  hRadio,
BLUETOOTH_DEVICE_INFO *  pbtdi 
)
DWORD WINAPI BluetoothGetRadioInfo ( HANDLE  hRadio,
PBLUETOOTH_RADIO_INFO  pRadioInfo 
)
BOOL WINAPI BluetoothIsConnectable ( HANDLE  hRadio )
BOOL WINAPI BluetoothIsDiscoverable ( HANDLE  hRadio )
DWORD WINAPI BluetoothRegisterForAuthentication ( BLUETOOTH_DEVICE_INFO *  pbtdi,
HBLUETOOTH_AUTHENTICATION_REGISTRATION phRegHandle,
PFN_AUTHENTICATION_CALLBACK  pfnCallback,
PVOID  pvParam 
)
DWORD WINAPI BluetoothRemoveDevice ( BLUETOOTH_ADDRESS *  pAddress )
BOOL WINAPI BluetoothSdpEnumAttributes ( LPBYTE  pSDPStream,
ULONG  cbStreamSize,
PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK  pfnCallback,
LPVOID  pvParam 
)
DWORD WINAPI BluetoothSdpGetAttributeValue ( LPBYTE  pRecordStream,
ULONG  cbRecordLength,
USHORT  usAttributeId,
PSDP_ELEMENT_DATA  pAttributeData 
)
DWORD WINAPI BluetoothSdpGetContainerElementData ( LPBYTE  pContainerStream,
ULONG  cbContainerLength,
HBLUETOOTH_CONTAINER_ELEMENT pElement,
PSDP_ELEMENT_DATA  pData 
)
DWORD WINAPI BluetoothSdpGetElementData ( LPBYTE  pSdpStream,
ULONG  cbSdpStreamLength,
PSDP_ELEMENT_DATA  pData 
)
DWORD WINAPI BluetoothSdpGetString ( LPBYTE  pRecordStream,
ULONG  cbRecordLength,
PSDP_STRING_TYPE_DATA  pStringData,
USHORT  usStringOffset,
PWCHAR  pszString,
PULONG  pcchStringLength 
)
BOOL WINAPI BluetoothSelectDevices ( BLUETOOTH_SELECT_DEVICE_PARAMS pbtsdp )
BOOL WINAPI BluetoothSelectDevicesFree ( BLUETOOTH_SELECT_DEVICE_PARAMS pbtsdp )
DWORD WINAPI BluetoothSendAuthenticationResponse ( HANDLE  hRadio,
BLUETOOTH_DEVICE_INFO *  pbtdi,
LPWSTR  pszPasskey 
)
DWORD WINAPI BluetoothSetServiceState ( HANDLE  hRadio,
BLUETOOTH_DEVICE_INFO *  pbtdi,
GUID *  pGuidService,
DWORD  dwServiceFlags 
)
BOOL WINAPI BluetoothUnregisterAuthentication ( HBLUETOOTH_AUTHENTICATION_REGISTRATION  hRegHandle )
DWORD WINAPI BluetoothUpdateDeviceRecord ( BLUETOOTH_DEVICE_INFO *  pbtdi )
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:18