Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5d2051eb
Commit
5d2051eb
authored
Dec 25, 2022
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Feb 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add BluetoothRegisterForAuthenticationEx prototype.
parent
a700b620
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
bluetoothapis.h
include/bluetoothapis.h
+44
-0
No files found.
include/bluetoothapis.h
View file @
5d2051eb
...
...
@@ -110,6 +110,49 @@ typedef struct _BLUETOOTH_SELECT_DEVICE_PARAMS {
typedef
BOOL
(
WINAPI
*
PFN_AUTHENTICATION_CALLBACK
)(
void
*
,
PBLUETOOTH_DEVICE_INFO
);
#define BLUETOOTH_DEVICE_INFO BLUETOOTH_DEVICE_INFO_STRUCT
typedef
BLUETOOTH_DEVICE_INFO
*
PBLUETOOTH_DEVICE_INFO
;
typedef
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
,
}
BLUETOOTH_AUTHENTICATION_METHOD
,
*
PBLUETOOTH_AUTHENTICATION_METHOD
;
typedef
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
,
}
BLUETOOTH_IO_CAPABILITY
;
typedef
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
,
}
BLUETOOTH_AUTHENTICATION_REQUIREMENTS
;
typedef
struct
_BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS
{
BLUETOOTH_DEVICE_INFO
deviceInfo
;
BLUETOOTH_AUTHENTICATION_METHOD
authenticationMethod
;
BLUETOOTH_IO_CAPABILITY
ioCapability
;
BLUETOOTH_AUTHENTICATION_REQUIREMENTS
authenticationRequirements
;
union
{
ULONG
Numeric_Value
;
ULONG
Passkey
;
};
}
BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS
,
*
PBLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS
;
typedef
BOOL
(
CALLBACK
*
PFN_AUTHENTICATION_CALLBACK_EX
)(
void
*
,
BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS
*
);
typedef
struct
_SDP_ELEMENT_DATA
{
SDP_TYPE
type
;
SDP_SPECIFICTYPE
specificType
;
...
...
@@ -183,6 +226,7 @@ DWORD WINAPI BluetoothGetRadioInfo(HANDLE, PBLUETOOTH_RADIO_INFO);
BOOL
WINAPI
BluetoothIsConnectable
(
HANDLE
);
BOOL
WINAPI
BluetoothIsDiscoverable
(
HANDLE
);
DWORD
WINAPI
BluetoothRegisterForAuthentication
(
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
*
);
#define BluetoothEnumAttributes BluetoothSdpEnumAttributes
BOOL
WINAPI
BluetoothSdpEnumAttributes
(
BYTE
*
,
ULONG
,
PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK
,
void
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment