ReactOS 0.4.16-dev-2491-g3dc6630
bluetoothapis.h File Reference
This graph shows which files directly or indirectly include this file:

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  _BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS
 
struct  _SDP_ELEMENT_DATA
 
struct  _SDP_STRING_TYPE_DATA
 

Macros

#define BLUETOOTH_ADDRESS   BLUETOOTH_ADDRESS_STRUCT
 
#define BLUETOOTH_NULL_ADDRESS   ((ULONGLONG) 0x0)
 
#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_SERVICE_DISABLE   0x00
 
#define BLUETOOTH_SERVICE_ENABLE   0x01
 
#define BLUETOOTH_SERVICE_MASK   (BLUETOOTH_ENABLE_SERVICE | BLUETOOTH_DISABLE_SERVICE)
 
#define BLUETOOTH_DEVICE_INFO   BLUETOOTH_DEVICE_INFO_STRUCT
 
#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 struct _BLUETOOTH_RADIO_INFO BLUETOOTH_RADIO_INFO
 
typedef struct _BLUETOOTH_RADIO_INFOPBLUETOOTH_RADIO_INFO
 
typedef struct _BLUETOOTH_DEVICE_INFO BLUETOOTH_DEVICE_INFO
 
typedef struct _BLUETOOTH_DEVICE_INFO BLUETOOTH_DEVICE_INFO_STRUCT
 
typedef struct _BLUETOOTH_DEVICE_INFOPBLUETOOTH_DEVICE_INFO
 
typedef struct _BLUETOOTH_DEVICE_SEARCH_PARAMS BLUETOOTH_DEVICE_SEARCH_PARAMS
 
typedef HANDLE HBLUETOOTH_AUTHENTICATION_REGISTRATION
 
typedef HANDLE HBLUETOOTH_CONTAINER_ELEMENT
 
typedef HANDLE HBLUETOOTH_DEVICE_FIND
 
typedef HANDLE HBLUETOOTH_RADIO_FIND
 
typedef struct _BLUETOOTH_COD_PAIRS BLUETOOTH_COD_PAIRS
 
typedef BOOL(WINAPIPFN_DEVICE_CALLBACK) (void *pvParam, const BLUETOOTH_DEVICE_INFO *pDevice)
 
typedef struct _BLUETOOTH_SELECT_DEVICE_PARAMS BLUETOOTH_SELECT_DEVICE_PARAMS
 
typedef BOOL(WINAPIPFN_AUTHENTICATION_CALLBACK) (void *, PBLUETOOTH_DEVICE_INFO)
 
typedef enum _BLUETOOTH_AUTHENTICATION_METHOD BLUETOOTH_AUTHENTICATION_METHOD
 
typedef enum _BLUETOOTH_AUTHENTICATION_METHODPBLUETOOTH_AUTHENTICATION_METHOD
 
typedef enum _BLUETOOTH_IO_CAPABILITY BLUETOOTH_IO_CAPABILITY
 
typedef enum _BLUETOOTH_AUTHENTICATION_REQUIREMENTS BLUETOOTH_AUTHENTICATION_REQUIREMENTS
 
typedef struct _BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS
 
typedef struct _BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMSPBLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS
 
typedef BOOL(CALLBACKPFN_AUTHENTICATION_CALLBACK_EX) (void *, BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS *)
 
typedef struct _SDP_ELEMENT_DATA SDP_ELEMENT_DATA
 
typedef struct _SDP_ELEMENT_DATAPSDP_ELEMENT_DATA
 
typedef struct _SDP_STRING_TYPE_DATA SDP_STRING_TYPE_DATA
 
typedef struct _SDP_STRING_TYPE_DATAPSDP_STRING_TYPE_DATA
 
typedef BOOL(CALLBACKPFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK) (ULONG uAttribId, BYTE *pValueStream, ULONG cbStreamSize, void *pvParam)
 

Enumerations

enum  _BLUETOOTH_AUTHENTICATION_METHOD {
  BLUETOOTH_AUTHENTICATION_METHOD_LEGACY = 0x1 , BLUETOOTH_AUTHENTICATION_METHOD_OOB , BLUETOOTH_AUTHENTICATION_METHOD_NUMERIC_COMPARISON , BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY_NOTIFICATION ,
  BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY
}
 
enum  _BLUETOOTH_IO_CAPABILITY {
  BLUETOOTH_IO_CAPABILITY_DISPLAYONLY = 0x00 , BLUETOOTH_IO_CAPABILITY_DISPLAYYESNO = 0x01 , BLUETOOTH_IO_CAPABILITY_KEYBOARDONLY = 0x02 , BLUETOOTH_IO_CAPABILITY_NOINPUTNOOUTPUT = 0x03 ,
  BLUETOOTH_IO_CAPABILITY_UNDEFINED = 0xff
}
 
enum  _BLUETOOTH_AUTHENTICATION_REQUIREMENTS {
  BLUETOOTH_MITM_ProtectionNotRequired = 0 , BLUETOOTH_MITM_ProtectionRequired = 0x1 , BLUETOOTH_MITM_ProtectionNotRequiredBonding = 0x2 , BLUETOOTH_MITM_ProtectionRequiredBonding = 0x3 ,
  BLUETOOTH_MITM_ProtectionNotRequiredGeneralBonding = 0x4 , BLUETOOTH_MITM_ProtectionRequiredGeneralBonding = 0x5 , BLUETOOTH_MITM_ProtectionNotDefined = 0xff
}
 

Functions

DWORD WINAPI BluetoothAuthenticateDevice (HWND, HANDLE, BLUETOOTH_DEVICE_INFO *, WCHAR *, ULONG)
 
DWORD WINAPI BluetoothAuthenticateMultipleDevices (HWND, HANDLE, DWORD, BLUETOOTH_DEVICE_INFO *)
 
BOOL WINAPI BluetoothDisplayDeviceProperties (HWND, BLUETOOTH_DEVICE_INFO *)
 
BOOL WINAPI BluetoothEnableDiscovery (HANDLE, BOOL)
 
BOOL WINAPI BluetoothEnableIncomingConnections (HANDLE, BOOL)
 
DWORD WINAPI BluetoothEnumerateInstalledServices (HANDLE, BLUETOOTH_DEVICE_INFO *, DWORD *, GUID *)
 
BOOL WINAPI BluetoothFindDeviceClose (HBLUETOOTH_DEVICE_FIND)
 
HBLUETOOTH_DEVICE_FIND WINAPI BluetoothFindFirstDevice (BLUETOOTH_DEVICE_SEARCH_PARAMS *, BLUETOOTH_DEVICE_INFO *)
 
HBLUETOOTH_RADIO_FIND WINAPI BluetoothFindFirstRadio (BLUETOOTH_FIND_RADIO_PARAMS *, HANDLE *)
 
BOOL WINAPI BluetoothFindNextDevice (HBLUETOOTH_DEVICE_FIND, BLUETOOTH_DEVICE_INFO *)
 
BOOL WINAPI BluetoothFindNextRadio (HBLUETOOTH_RADIO_FIND, HANDLE *)
 
BOOL WINAPI BluetoothFindRadioClose (HBLUETOOTH_RADIO_FIND)
 
DWORD WINAPI BluetoothGetDeviceInfo (HANDLE, BLUETOOTH_DEVICE_INFO *)
 
DWORD WINAPI BluetoothGetRadioInfo (HANDLE, PBLUETOOTH_RADIO_INFO)
 
BOOL WINAPI BluetoothIsConnectable (HANDLE)
 
BOOL WINAPI BluetoothIsDiscoverable (HANDLE)
 
DWORD WINAPI BluetoothRegisterForAuthentication (const BLUETOOTH_DEVICE_INFO *, HBLUETOOTH_AUTHENTICATION_REGISTRATION *, PFN_AUTHENTICATION_CALLBACK, void *)
 
DWORD WINAPI BluetoothRegisterForAuthenticationEx (const BLUETOOTH_DEVICE_INFO *, HBLUETOOTH_AUTHENTICATION_REGISTRATION *, PFN_AUTHENTICATION_CALLBACK_EX, void *)
 
DWORD WINAPI BluetoothRemoveDevice (BLUETOOTH_ADDRESS *)
 
BOOL WINAPI BluetoothSdpEnumAttributes (BYTE *, ULONG, PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK, void *)
 
DWORD WINAPI BluetoothSdpGetAttributeValue (BYTE *, ULONG, USHORT, PSDP_ELEMENT_DATA)
 
DWORD WINAPI BluetoothSdpGetContainerElementData (BYTE *, ULONG, HBLUETOOTH_CONTAINER_ELEMENT *, PSDP_ELEMENT_DATA)
 
DWORD WINAPI BluetoothSdpGetElementData (BYTE *, ULONG, PSDP_ELEMENT_DATA)
 
DWORD WINAPI BluetoothSdpGetString (BYTE *, ULONG, PSDP_STRING_TYPE_DATA, USHORT, WCHAR *, ULONG *)
 
BOOL WINAPI BluetoothSelectDevices (BLUETOOTH_SELECT_DEVICE_PARAMS *)
 
BOOL WINAPI BluetoothSelectDevicesFree (BLUETOOTH_SELECT_DEVICE_PARAMS *)
 
DWORD WINAPI BluetoothSendAuthenticationResponse (HANDLE, BLUETOOTH_DEVICE_INFO *, WCHAR *)
 
DWORD WINAPI BluetoothSetServiceState (HANDLE, BLUETOOTH_DEVICE_INFO *, GUID *, DWORD)
 
BOOL WINAPI BluetoothUnregisterAuthentication (HBLUETOOTH_AUTHENTICATION_REGISTRATION)
 
DWORD WINAPI BluetoothUpdateDeviceRecord (BLUETOOTH_DEVICE_INFO *)
 

Macro Definition Documentation

◆ BLUETOOTH_ADDRESS

#define BLUETOOTH_ADDRESS   BLUETOOTH_ADDRESS_STRUCT

Definition at line 34 of file bluetoothapis.h.

◆ BLUETOOTH_DEVICE_INFO

◆ BLUETOOTH_MAX_NAME_SIZE

#define BLUETOOTH_MAX_NAME_SIZE   (248)

Definition at line 37 of file bluetoothapis.h.

◆ BLUETOOTH_MAX_PASSKEY_BUFFER_SIZE

#define BLUETOOTH_MAX_PASSKEY_BUFFER_SIZE   (BLUETOOTH_MAX_PASSKEY_SIZE + 1)

Definition at line 39 of file bluetoothapis.h.

◆ BLUETOOTH_MAX_PASSKEY_SIZE

#define BLUETOOTH_MAX_PASSKEY_SIZE   (16)

Definition at line 38 of file bluetoothapis.h.

◆ BLUETOOTH_NULL_ADDRESS

#define BLUETOOTH_NULL_ADDRESS   ((ULONGLONG) 0x0)

Definition at line 35 of file bluetoothapis.h.

◆ BLUETOOTH_SERVICE_DISABLE

#define BLUETOOTH_SERVICE_DISABLE   0x00

Definition at line 41 of file bluetoothapis.h.

◆ BLUETOOTH_SERVICE_ENABLE

#define BLUETOOTH_SERVICE_ENABLE   0x01

Definition at line 42 of file bluetoothapis.h.

◆ BLUETOOTH_SERVICE_MASK

#define BLUETOOTH_SERVICE_MASK   (BLUETOOTH_ENABLE_SERVICE | BLUETOOTH_DISABLE_SERVICE)

Definition at line 43 of file bluetoothapis.h.

◆ BluetoothEnumAttributes

#define BluetoothEnumAttributes   BluetoothSdpEnumAttributes

Definition at line 231 of file bluetoothapis.h.

Typedef Documentation

◆ BLUETOOTH_ADDRESS_STRUCT

◆ BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS

◆ BLUETOOTH_AUTHENTICATION_METHOD

◆ BLUETOOTH_AUTHENTICATION_REQUIREMENTS

◆ BLUETOOTH_COD_PAIRS

◆ BLUETOOTH_DEVICE_INFO

◆ BLUETOOTH_DEVICE_INFO_STRUCT

◆ BLUETOOTH_DEVICE_SEARCH_PARAMS

◆ BLUETOOTH_FIND_RADIO_PARAMS

◆ BLUETOOTH_IO_CAPABILITY

◆ BLUETOOTH_RADIO_INFO

◆ BLUETOOTH_SELECT_DEVICE_PARAMS

◆ BTH_ADDR

Definition at line 25 of file bluetoothapis.h.

◆ HBLUETOOTH_AUTHENTICATION_REGISTRATION

Definition at line 81 of file bluetoothapis.h.

◆ HBLUETOOTH_CONTAINER_ELEMENT

Definition at line 82 of file bluetoothapis.h.

◆ HBLUETOOTH_DEVICE_FIND

Definition at line 83 of file bluetoothapis.h.

◆ HBLUETOOTH_RADIO_FIND

Definition at line 84 of file bluetoothapis.h.

◆ PBLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS

◆ PBLUETOOTH_AUTHENTICATION_METHOD

◆ PBLUETOOTH_DEVICE_INFO

Definition at line 115 of file bluetoothapis.h.

◆ PBLUETOOTH_RADIO_INFO

◆ PFN_AUTHENTICATION_CALLBACK

typedef BOOL(WINAPI * PFN_AUTHENTICATION_CALLBACK) (void *, PBLUETOOTH_DEVICE_INFO)

Definition at line 111 of file bluetoothapis.h.

◆ PFN_AUTHENTICATION_CALLBACK_EX

typedef BOOL(CALLBACK * PFN_AUTHENTICATION_CALLBACK_EX) (void *, BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS *)

Definition at line 154 of file bluetoothapis.h.

◆ PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK

typedef BOOL(CALLBACK * PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK) (ULONG uAttribId, BYTE *pValueStream, ULONG cbStreamSize, void *pvParam)

Definition at line 206 of file bluetoothapis.h.

◆ PFN_DEVICE_CALLBACK

typedef BOOL(WINAPI * PFN_DEVICE_CALLBACK) (void *pvParam, const BLUETOOTH_DEVICE_INFO *pDevice)

Definition at line 91 of file bluetoothapis.h.

◆ PSDP_ELEMENT_DATA

◆ PSDP_STRING_TYPE_DATA

◆ SDP_ELEMENT_DATA

◆ SDP_STRING_TYPE_DATA

Enumeration Type Documentation

◆ _BLUETOOTH_AUTHENTICATION_METHOD

Enumerator
BLUETOOTH_AUTHENTICATION_METHOD_LEGACY 
BLUETOOTH_AUTHENTICATION_METHOD_OOB 
BLUETOOTH_AUTHENTICATION_METHOD_NUMERIC_COMPARISON 
BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY_NOTIFICATION 
BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY 

Definition at line 117 of file bluetoothapis.h.

117 {
enum _BLUETOOTH_AUTHENTICATION_METHOD BLUETOOTH_AUTHENTICATION_METHOD
enum _BLUETOOTH_AUTHENTICATION_METHOD * PBLUETOOTH_AUTHENTICATION_METHOD
@ BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY
@ BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY_NOTIFICATION
@ BLUETOOTH_AUTHENTICATION_METHOD_LEGACY
@ BLUETOOTH_AUTHENTICATION_METHOD_NUMERIC_COMPARISON
@ BLUETOOTH_AUTHENTICATION_METHOD_OOB

◆ _BLUETOOTH_AUTHENTICATION_REQUIREMENTS

Enumerator
BLUETOOTH_MITM_ProtectionNotRequired 
BLUETOOTH_MITM_ProtectionRequired 
BLUETOOTH_MITM_ProtectionNotRequiredBonding 
BLUETOOTH_MITM_ProtectionRequiredBonding 
BLUETOOTH_MITM_ProtectionNotRequiredGeneralBonding 
BLUETOOTH_MITM_ProtectionRequiredGeneralBonding 
BLUETOOTH_MITM_ProtectionNotDefined 

Definition at line 133 of file bluetoothapis.h.

133 {
@ BLUETOOTH_MITM_ProtectionNotRequired
@ BLUETOOTH_MITM_ProtectionNotRequiredGeneralBonding
@ BLUETOOTH_MITM_ProtectionNotDefined
@ BLUETOOTH_MITM_ProtectionRequired
@ BLUETOOTH_MITM_ProtectionRequiredBonding
@ BLUETOOTH_MITM_ProtectionRequiredGeneralBonding
@ BLUETOOTH_MITM_ProtectionNotRequiredBonding
enum _BLUETOOTH_AUTHENTICATION_REQUIREMENTS BLUETOOTH_AUTHENTICATION_REQUIREMENTS

◆ _BLUETOOTH_IO_CAPABILITY

Enumerator
BLUETOOTH_IO_CAPABILITY_DISPLAYONLY 
BLUETOOTH_IO_CAPABILITY_DISPLAYYESNO 
BLUETOOTH_IO_CAPABILITY_KEYBOARDONLY 
BLUETOOTH_IO_CAPABILITY_NOINPUTNOOUTPUT 
BLUETOOTH_IO_CAPABILITY_UNDEFINED 

Definition at line 125 of file bluetoothapis.h.

125 {
@ BLUETOOTH_IO_CAPABILITY_NOINPUTNOOUTPUT
@ BLUETOOTH_IO_CAPABILITY_UNDEFINED
@ BLUETOOTH_IO_CAPABILITY_DISPLAYYESNO
@ BLUETOOTH_IO_CAPABILITY_KEYBOARDONLY
@ BLUETOOTH_IO_CAPABILITY_DISPLAYONLY
enum _BLUETOOTH_IO_CAPABILITY BLUETOOTH_IO_CAPABILITY

Function Documentation

◆ BluetoothAuthenticateDevice()

DWORD WINAPI BluetoothAuthenticateDevice ( HWND  ,
HANDLE  ,
BLUETOOTH_DEVICE_INFO ,
WCHAR ,
ULONG   
)

◆ BluetoothAuthenticateMultipleDevices()

DWORD WINAPI BluetoothAuthenticateMultipleDevices ( HWND  ,
HANDLE  ,
DWORD  ,
BLUETOOTH_DEVICE_INFO  
)

◆ BluetoothDisplayDeviceProperties()

BOOL WINAPI BluetoothDisplayDeviceProperties ( HWND  ,
BLUETOOTH_DEVICE_INFO  
)

◆ BluetoothEnableDiscovery()

BOOL WINAPI BluetoothEnableDiscovery ( HANDLE  ,
BOOL   
)

◆ BluetoothEnableIncomingConnections()

BOOL WINAPI BluetoothEnableIncomingConnections ( HANDLE  ,
BOOL   
)

◆ BluetoothEnumerateInstalledServices()

DWORD WINAPI BluetoothEnumerateInstalledServices ( HANDLE  ,
BLUETOOTH_DEVICE_INFO ,
DWORD ,
GUID  
)

◆ BluetoothFindDeviceClose()

BOOL WINAPI BluetoothFindDeviceClose ( HBLUETOOTH_DEVICE_FIND  find)

Definition at line 126 of file main.c.

127{
128 FIXME("(%p): stub!\n", find);
130 return FALSE;
131}
#define FIXME(fmt,...)
Definition: precomp.h:53
static TAGID TAGID find
Definition: db.cpp:156
#define FALSE
Definition: types.h:117
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define SetLastError(x)
Definition: compat.h:752

◆ BluetoothFindFirstDevice()

HBLUETOOTH_DEVICE_FIND WINAPI BluetoothFindFirstDevice ( BLUETOOTH_DEVICE_SEARCH_PARAMS params,
BLUETOOTH_DEVICE_INFO info 
)

Definition at line 47 of file main.c.

49{
50 FIXME("(%p %p): stub!\n", params, info);
52 return NULL;
53}
#define NULL
Definition: types.h:112
GLenum const GLfloat * params
Definition: glext.h:5645

◆ BluetoothFindFirstRadio()

HBLUETOOTH_RADIO_FIND WINAPI BluetoothFindFirstRadio ( BLUETOOTH_FIND_RADIO_PARAMS params,
HANDLE radio 
)

Definition at line 58 of file main.c.

59{
61 HANDLE device_ret;
62 DWORD err;
63
64 TRACE( "(%p, %p)\n", params, radio );
65
66 if (!params)
67 {
69 return NULL;
70 }
71 if (params->dwSize != sizeof( *params ))
72 {
74 return NULL;
75 }
76 if (!(find = calloc( 1, sizeof( *find ) )))
77 {
79 return NULL;
80 }
81
82 find->devinfo = SetupDiGetClassDevsW( &GUID_BTHPORT_DEVICE_INTERFACE, NULL, NULL,
84 if (find->devinfo == INVALID_HANDLE_VALUE)
85 {
86 free( find );
87 return NULL;
88 }
89
90 if (BluetoothFindNextRadio( find, &device_ret ))
91 {
92 *radio = device_ret;
93 return find;
94 }
95
96 err = GetLastError();
99 return NULL;
100}
#define free
Definition: debug_ros.c:5
#define ERROR_OUTOFMEMORY
Definition: deptool.c:13
BOOL WINAPI BluetoothFindRadioClose(HBLUETOOTH_RADIO_FIND find_handle)
Definition: main.c:105
BOOL WINAPI BluetoothFindNextRadio(HBLUETOOTH_RADIO_FIND find_handle, HANDLE *radio)
Definition: main.c:136
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
HDEVINFO WINAPI SetupDiGetClassDevsW(CONST GUID *class, LPCWSTR enumstr, HWND parent, DWORD flags)
Definition: devinst.c:2292
unsigned long DWORD
Definition: ntddk_ex.h:95
#define err(...)
#define calloc
Definition: rosglue.h:14
#define DIGCF_DEVICEINTERFACE
Definition: setupapi.h:175
#define DIGCF_PRESENT
Definition: setupapi.h:172
#define TRACE(s)
Definition: solgame.cpp:4
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define ERROR_REVISION_MISMATCH
Definition: winerror.h:1133

◆ BluetoothFindNextDevice()

BOOL WINAPI BluetoothFindNextDevice ( HBLUETOOTH_DEVICE_FIND  find,
BLUETOOTH_DEVICE_INFO info 
)

Definition at line 189 of file main.c.

190{
191 FIXME("(%p, %p): stub!\n", find, info);
193 return FALSE;
194}

◆ BluetoothFindNextRadio()

BOOL WINAPI BluetoothFindNextRadio ( HBLUETOOTH_RADIO_FIND  find_handle,
HANDLE radio 
)

Definition at line 136 of file main.c.

137{
138 char buffer[sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_W) + MAX_PATH * sizeof( WCHAR )];
141 SP_DEVICE_INTERFACE_DATA iface_data;
142 HANDLE device_ret;
143 BOOL found;
144
145 TRACE( "(%p, %p)\n", find_handle, radio );
146
147 if (!find_handle)
148 {
150 return FALSE;
151 }
152
153 iface_detail->cbSize = sizeof( *iface_detail );
154 iface_data.cbSize = sizeof( iface_data );
155 found = FALSE;
156 while (SetupDiEnumDeviceInterfaces( find->devinfo, NULL, &GUID_BTHPORT_DEVICE_INTERFACE, find->idx++,
157 &iface_data ))
158 {
159 if (!SetupDiGetDeviceInterfaceDetailW( find->devinfo, &iface_data, iface_detail, sizeof( buffer ), NULL,
160 NULL ))
161 continue;
162 device_ret = CreateFileW( iface_detail->DevicePath, GENERIC_READ | GENERIC_WRITE,
164 if (device_ret != INVALID_HANDLE_VALUE)
165 {
166 found = TRUE;
167 break;
168 }
169 }
170
171 if (found)
172 *radio = device_ret;
173
174 return found;
175}
#define TRUE
Definition: types.h:120
#define OPEN_EXISTING
Definition: compat.h:775
#define GENERIC_READ
Definition: compat.h:135
#define MAX_PATH
Definition: compat.h:34
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
#define CreateFileW
Definition: compat.h:741
#define FILE_SHARE_READ
Definition: compat.h:136
BOOL WINAPI SetupDiEnumDeviceInterfaces(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, CONST GUID *InterfaceClassGuid, DWORD MemberIndex, PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData)
Definition: devinst.c:2780
BOOL WINAPI SetupDiGetDeviceInterfaceDetailW(HDEVINFO DeviceInfoSet, PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData, PSP_DEVICE_INTERFACE_DETAIL_DATA_W DeviceInterfaceDetailData, DWORD DeviceInterfaceDetailDataSize, PDWORD RequiredSize, PSP_DEVINFO_DATA DeviceInfoData)
Definition: devinst.c:3011
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint buffer
Definition: glext.h:5915
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
#define GENERIC_WRITE
Definition: nt_native.h:90
struct _SP_DEVICE_INTERFACE_DETAIL_DATA_W SP_DEVICE_INTERFACE_DETAIL_DATA_W
WCHAR DevicePath[ANYSIZE_ARRAY]
Definition: setupapi.h:856
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by BluetoothFindFirstRadio().

◆ BluetoothFindRadioClose()

BOOL WINAPI BluetoothFindRadioClose ( HBLUETOOTH_RADIO_FIND  find_handle)

Definition at line 105 of file main.c.

106{
108
109 TRACE( "(%p)\n", find_handle );
110
111 if (!find_handle)
112 {
114 return FALSE;
115 }
116
118 free( find );
120 return TRUE;
121}
#define ERROR_SUCCESS
Definition: deptool.c:10
BOOL WINAPI SetupDiDestroyDeviceInfoList(HDEVINFO devinfo)
Definition: devinst.c:2893

Referenced by BluetoothFindFirstRadio().

◆ BluetoothGetDeviceInfo()

DWORD WINAPI BluetoothGetDeviceInfo ( HANDLE  ,
BLUETOOTH_DEVICE_INFO  
)

◆ BluetoothGetRadioInfo()

DWORD WINAPI BluetoothGetRadioInfo ( HANDLE  radio,
PBLUETOOTH_RADIO_INFO  info 
)

Definition at line 180 of file main.c.

181{
182 FIXME("(%p, %p): stub!\n", radio, info);
184}

◆ BluetoothIsConnectable()

BOOL WINAPI BluetoothIsConnectable ( HANDLE  )

◆ BluetoothIsDiscoverable()

BOOL WINAPI BluetoothIsDiscoverable ( HANDLE  )

◆ BluetoothRegisterForAuthentication()

◆ BluetoothRegisterForAuthenticationEx()

DWORD WINAPI BluetoothRegisterForAuthenticationEx ( const BLUETOOTH_DEVICE_INFO info,
HBLUETOOTH_AUTHENTICATION_REGISTRATION out,
PFN_AUTHENTICATION_CALLBACK_EX  callback,
void param 
)

Definition at line 199 of file main.c.

201{
202 FIXME("(%p, %p, %p, %p): stub!\n", info, out, callback, param);
204}
GLfloat param
Definition: glext.h:5796
static IPrintDialogCallback callback
Definition: printdlg.c:326
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383

◆ BluetoothRemoveDevice()

DWORD WINAPI BluetoothRemoveDevice ( BLUETOOTH_ADDRESS )

◆ BluetoothSdpEnumAttributes()

BOOL WINAPI BluetoothSdpEnumAttributes ( BYTE stream,
ULONG  stream_size,
PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK  callback,
void param 
)

Definition at line 320 of file sdp.c.

322{
326
327 TRACE( "(%p, %ld, %p, %p)\n", stream, stream_size, callback, param );
328
329 if (stream == NULL || callback == NULL) return ERROR_INVALID_PARAMETER;
330
332 if (result != ERROR_SUCCESS)
333 {
335 return FALSE;
336 }
337
338 switch (data.type)
339 {
342 break;
343 default:
345 return FALSE;
346 }
347
348 for (;;)
349 {
350 SDP_ELEMENT_DATA attrid = {0};
352 BYTE *raw_attr_stream;
353
354 result = BluetoothSdpGetContainerElementData( data.data.sequence.value,
355 data.data.sequence.length, &cursor, &attrid );
356 if (result == ERROR_NO_MORE_ITEMS) return TRUE;
357 if (result || !SDP_ELEMENT_IS_ATTRID( &attrid ))
358 {
360 return FALSE;
361 }
362
363 raw_attr_stream = cursor;
364 result = BluetoothSdpGetContainerElementData( data.data.sequence.value,
365 data.data.sequence.length, &cursor, &attr );
366 if (result != ERROR_SUCCESS)
367 {
369 return FALSE;
370 }
371 if (!callback( attrid.data.uint16, raw_attr_stream, ((BYTE *)cursor - raw_attr_stream),
372 param ))
373 return TRUE;
374 }
375}
@ SDP_TYPE_SEQUENCE
Definition: bthsdpdef.h:49
@ SDP_TYPE_ALTERNATIVE
Definition: bthsdpdef.h:50
#define ERROR_NO_MORE_ITEMS
Definition: compat.h:105
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint64EXT * result
Definition: glext.h:11304
const char cursor[]
Definition: icontest.c:13
int const char int stream_size
Definition: zlib.h:814
DWORD WINAPI BluetoothSdpGetElementData(BYTE *stream, ULONG stream_size, SDP_ELEMENT_DATA *data)
Definition: sdp.c:248
DWORD WINAPI BluetoothSdpGetContainerElementData(BYTE *stream, ULONG stream_size, HBLUETOOTH_CONTAINER_ELEMENT *handle, SDP_ELEMENT_DATA *data)
Definition: sdp.c:263
#define SDP_ELEMENT_IS_ATTRID(d)
Definition: sdp.c:56
union _SDP_ELEMENT_DATA::@2942 data
Definition: cookie.c:202
Definition: parse.h:23
#define ERROR_INVALID_DATA
Definition: winerror.h:238
unsigned char BYTE
Definition: xxhash.c:193

Referenced by BluetoothSdpGetAttributeValue().

◆ BluetoothSdpGetAttributeValue()

DWORD WINAPI BluetoothSdpGetAttributeValue ( BYTE ,
ULONG  ,
USHORT  ,
PSDP_ELEMENT_DATA   
)

◆ BluetoothSdpGetContainerElementData()

DWORD WINAPI BluetoothSdpGetContainerElementData ( BYTE ,
ULONG  ,
HBLUETOOTH_CONTAINER_ELEMENT ,
PSDP_ELEMENT_DATA   
)

◆ BluetoothSdpGetElementData()

DWORD WINAPI BluetoothSdpGetElementData ( BYTE ,
ULONG  ,
PSDP_ELEMENT_DATA   
)

◆ BluetoothSdpGetString()

DWORD WINAPI BluetoothSdpGetString ( BYTE ,
ULONG  ,
PSDP_STRING_TYPE_DATA  ,
USHORT  ,
WCHAR ,
ULONG  
)

◆ BluetoothSelectDevices()

BOOL WINAPI BluetoothSelectDevices ( BLUETOOTH_SELECT_DEVICE_PARAMS )

◆ BluetoothSelectDevicesFree()

BOOL WINAPI BluetoothSelectDevicesFree ( BLUETOOTH_SELECT_DEVICE_PARAMS )

◆ BluetoothSendAuthenticationResponse()

DWORD WINAPI BluetoothSendAuthenticationResponse ( HANDLE  ,
BLUETOOTH_DEVICE_INFO ,
WCHAR  
)

◆ BluetoothSetServiceState()

DWORD WINAPI BluetoothSetServiceState ( HANDLE  ,
BLUETOOTH_DEVICE_INFO ,
GUID ,
DWORD   
)

◆ BluetoothUnregisterAuthentication()

BOOL WINAPI BluetoothUnregisterAuthentication ( HBLUETOOTH_AUTHENTICATION_REGISTRATION  handle)

Definition at line 209 of file main.c.

210{
211 FIXME("(%p): stub!\n", handle);
213 return FALSE;
214}

◆ BluetoothUpdateDeviceRecord()

DWORD WINAPI BluetoothUpdateDeviceRecord ( BLUETOOTH_DEVICE_INFO )