This function is called by an application to register the class of events for which to receive notifications.
HANDLE RequestBluetoothNotifications( DWORD dwClass, HANDLE hMsgQ );
[In] Class of events to receive notifications for.
[In] Handle to the message queue created by the application.
If no error occurs, then this function returns a handle to the caller. If an error occurs, then this function returns NULL.
To register for certain class of events, specify the bitmask in dwClass. The following list show the possible values for the class of events.
- BTE_CLASS_CONNECTIONS (1)
- BTE_CLASS_PAIRING (2)
- BTE_CLASS_DEVICE (4)
- BTE_CLASS_STACK (8)
Pass the handle returned by the CreateMsgQueue function called by the application to create a message queue, in order to receive event notifications sent by the Bluetooth Stack. To terminate the event notification process, call the StopBluetoothNotifications function.
Pocket PC: Windows Mobile 5.0 and later.
Smartphone: Windows Mobile 5.0 and later.
OS Versions: Windows CE 5.01 and later.
Link Library: Coredll.lib.
Send Feedback on this topic to the authors