Classes | Defines | Typedefs | Functions | Variables

BluetoothAPIs.h File Reference

Go to the source code of this file.

Classes

struct  _BLUETOOTH_ADDRESS
struct  _BLUETOOTH_LOCAL_SERVICE_INFO
struct  _BLUETOOTH_FIND_RADIO_PARAMS
struct  _BLUETOOTH_RADIO_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_MAX_SERVICE_NAME_SIZE   (256)
#define BLUETOOTH_DEVICE_NAME_SIZE   (256)
#define BLUETOOTH_ADDRESS   BLUETOOTH_ADDRESS_STRUCT
#define BLUETOOTH_NULL_ADDRESS   ( (ULONGLONG) 0x0 )
#define BLUETOOTH_LOCAL_SERVICE_INFO   BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT
#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_LOCAL_SERVICE_INFO 
BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT
typedef
BLUETOOTH_LOCAL_SERVICE_INFO * 
PBLUETOOTH_LOCAL_SERVICE_INFO
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 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, const BLUETOOTH_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, __in_bcount(cbStreamSize) LPBYTE pValueStream, ULONG cbStreamSize, LPVOID pvParam)

Functions

HBLUETOOTH_RADIO_FIND WINAPI BluetoothFindFirstRadio (const BLUETOOTH_FIND_RADIO_PARAMS *pbtfrp, __out HANDLE *phRadio)
BOOL WINAPI BluetoothFindNextRadio (__in HBLUETOOTH_RADIO_FIND hFind, __out HANDLE *phRadio)
BOOL WINAPI BluetoothFindRadioClose (__in HBLUETOOTH_RADIO_FIND hFind)
DWORD WINAPI BluetoothGetRadioInfo (__in HANDLE hRadio, __inout PBLUETOOTH_RADIO_INFO pRadioInfo)
typedef __struct_bcount (dwSize) struct _BLUETOOTH_DEVICE_INFO
HBLUETOOTH_DEVICE_FIND WINAPI BluetoothFindFirstDevice (const BLUETOOTH_DEVICE_SEARCH_PARAMS *pbtsp, __inout BLUETOOTH_DEVICE_INFO *pbtdi)
BOOL WINAPI BluetoothFindNextDevice (__in HBLUETOOTH_DEVICE_FIND hFind, __inout BLUETOOTH_DEVICE_INFO *pbtdi)
BOOL WINAPI BluetoothFindDeviceClose (__in HBLUETOOTH_DEVICE_FIND hFind)
DWORD WINAPI BluetoothGetDeviceInfo (__in_opt HANDLE hRadio, __inout BLUETOOTH_DEVICE_INFO *pbtdi)
DWORD WINAPI BluetoothUpdateDeviceRecord (const BLUETOOTH_DEVICE_INFO *pbtdi)
DWORD WINAPI BluetoothRemoveDevice (const BLUETOOTH_ADDRESS *pAddress)
BOOL WINAPI BluetoothSelectDevices (__inout BLUETOOTH_SELECT_DEVICE_PARAMS *pbtsdp)
BOOL WINAPI BluetoothSelectDevicesFree (__inout BLUETOOTH_SELECT_DEVICE_PARAMS *pbtsdp)
BOOL WINAPI BluetoothDisplayDeviceProperties (__in HWND hwndParent, __inout BLUETOOTH_DEVICE_INFO *pbtdi)
DWORD WINAPI BluetoothAuthenticateDevice (__in_opt HWND hwndParent, __in_opt HANDLE hRadio, __inout BLUETOOTH_DEVICE_INFO *pbtbi, __out_bcount_opt(ulPasskeyLength) PWCHAR pszPasskey, ULONG ulPasskeyLength)
DWORD WINAPI BluetoothAuthenticateMultipleDevices (__in_opt HWND hwndParent, __in_opt HANDLE hRadio, DWORD cDevices, __in_ecount(cDevices) BLUETOOTH_DEVICE_INFO *rgbtdi)
DWORD WINAPI BluetoothSetServiceState (__in_opt HANDLE hRadio, const BLUETOOTH_DEVICE_INFO *pbtdi, const GUID *pGuidService, DWORD dwServiceFlags)
DWORD WINAPI BluetoothEnumerateInstalledServices (__in_opt HANDLE hRadio, const BLUETOOTH_DEVICE_INFO *pbtdi, __inout DWORD *pcServices, __out_ecount_part(*pcServiceInout,*pcServiceInout) GUID *pGuidServices)
BOOL WINAPI BluetoothEnableDiscovery (__in_opt HANDLE hRadio, BOOL fEnabled)
BOOL WINAPI BluetoothIsDiscoverable (__in_opt HANDLE hRadio)
BOOL WINAPI BluetoothEnableIncomingConnections (__in_opt HANDLE hRadio, BOOL fEnabled)
BOOL WINAPI BluetoothIsConnectable (__in_opt HANDLE hRadio)
DWORD WINAPI BluetoothRegisterForAuthentication (const BLUETOOTH_DEVICE_INFO *pbtdi, __out HBLUETOOTH_AUTHENTICATION_REGISTRATION *phRegHandle, __in_opt PFN_AUTHENTICATION_CALLBACK pfnCallback, __in_opt PVOID pvParam)
BOOL WINAPI BluetoothUnregisterAuthentication (__in HBLUETOOTH_AUTHENTICATION_REGISTRATION hRegHandle)
DWORD WINAPI BluetoothSendAuthenticationResponse (__in_opt HANDLE hRadio, const BLUETOOTH_DEVICE_INFO *pbtdi, LPCWSTR pszPasskey)
DWORD WINAPI BluetoothSdpGetElementData (__in_bcount(cbSdpStreamLength) LPBYTE pSdpStream, ULONG cbSdpStreamLength, __out PSDP_ELEMENT_DATA pData)
DWORD WINAPI BluetoothSdpGetContainerElementData (__in_bcount(cbContainerLength) LPBYTE pContainerStream, ULONG cbContainerLength, __inout HBLUETOOTH_CONTAINER_ELEMENT *pElement, __out PSDP_ELEMENT_DATA pData)
DWORD WINAPI BluetoothSdpGetAttributeValue (__in_bcount(cbRecordLength) LPBYTE pRecordStream, ULONG cbRecordLength, USHORT usAttributeId, __out PSDP_ELEMENT_DATA pAttributeData)
DWORD WINAPI BluetoothSdpGetString (__in_bcount(cbRecordLength) LPBYTE pRecordStream, ULONG cbRecordLength, __in_opt const PSDP_STRING_TYPE_DATA pStringData, USHORT usStringOffset, __out_ecount_part(*pcchStringLength,*pcchStringLength) PWSTR pszString, __inout PULONG pcchStringLength)
BOOL WINAPI BluetoothSdpEnumAttributes (__in_bcount(cbStreamSize) LPBYTE pSDPStream, ULONG cbStreamSize, PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK pfnCallback, __in LPVOID pvParam)
DWORD WINAPI BluetoothSetLocalServiceInfo (__in_opt HANDLE hRadioIn, __in const GUID *pClassGuid, ULONG ulInstance, const BLUETOOTH_LOCAL_SERVICE_INFO *pServiceInfoIn)

Variables

 BLUETOOTH_DEVICE_INFO_STRUCT

Define Documentation

#define BLUETOOTH_ADDRESS   BLUETOOTH_ADDRESS_STRUCT
#define BLUETOOTH_DEVICE_INFO   BLUETOOTH_DEVICE_INFO_STRUCT
#define BLUETOOTH_DEVICE_NAME_SIZE   (256)
#define BLUETOOTH_LOCAL_SERVICE_INFO   BLUETOOTH_LOCAL_SERVICE_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_MAX_SERVICE_NAME_SIZE   (256)
#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 BLUETOOTH_LOCAL_SERVICE_INFO* PBLUETOOTH_LOCAL_SERVICE_INFO
typedef BOOL(* PFN_AUTHENTICATION_CALLBACK)(LPVOID pvParam, PBLUETOOTH_DEVICE_INFO pDevice)
typedef BOOL(CALLBACK * PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK)(ULONG uAttribId, __in_bcount(cbStreamSize) LPBYTE pValueStream, ULONG cbStreamSize, LPVOID pvParam)
typedef BOOL(WINAPI * PFN_DEVICE_CALLBACK)(LPVOID pvParam, const BLUETOOTH_DEVICE_INFO *pDevice)

Function Documentation

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

Variable Documentation

 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