BthNotifyEvent

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Use this function in client code to inject events into the Bluetooth stack.

Syntax

HANDLE BthNotifyEvent(
    PBTEVENT pbtEvent,
    DWORD dwEventClass
);

Parameters

  • pbtEvent
    [In] Pointer to the Bluetooth event structure that defines the event (event id and event-specific data) being injected into the Bluetooth stack.
  • dwEventClass
    [In] Class of event being injected into the Bluetooth stack.

Return Value

Returns ERROR_SUCCESS when the event was successfully injected into the Bluetooth stack and ERROR_SERVICE_NOT_ACTIVE when the Bluetooth driver is not loaded.

Remarks

At present, use this function in client code to send one of the following events into the Bluetooth stack:

  • BTE_SERVICE_CONNECTION_REQUEST (900)
  • BTE_SERVICE_DISCONNECTION_REQUEST (901)

The various other Bluetooth events are sent in the opposite direction, from the Bluetooth stack up into client code, and thus are not to be used with this function.

See Also

Reference

Bluetooth Application Development Functions

Other Resources