Bluetooth Components
The following table lists the Bluetooth libraries that are included in the Windows Mobile SDK. These libraries are located in the <SDK install directory>\Lib\<Hardware Platform> directory.
Note The functions contained in these libraries only work with the Microsoft® Bluetooth stack. If your device supports a third party stack, then the application calling these functions will fail.
Library | Description |
---|---|
Btd.lib (SP + PPC) | Microsoft core Bluetooth stack. This library exposes functions that are used to extend various layers of the stack. |
Bthguid.lib (SP + PPC) | Contains GUIDs that are used to instantiate various Bluetooth COM components. |
Bthutil.lib (SP + PPC) | Contains functions that are used to turn off or turn on Bluetooth on the device. These functions are declared in the Bthutil.h header file. |
Ws2.lib (SP + PPC) | Contains common Winsock2 functions that are used to perform various Bluetooth operations, such as device and service discovery. |
The following table lists the Bluetooth header files that are included in the Windows Mobile SDK. These headers are located in the <SDK install directory>\Include\<Hardware Platform> directory.
Header | Description |
---|---|
Bt_api.h (SP + PPC) | Defines client-level functions for calling into the Bluetooth stack.
Note To use the Bth* functions defined in this header you must link to Btdrt.lib. This library may or may not be available in your SDK. To preserve Win32 compatibility, consider using the Winsock equivalent of these functions. This header file also defines functions to receive event notifications from the stack. |
Bt_sdp.h (SP + PPC) | Defines structures and constants for SDP queries. |
Bthapi.h (SP + PPC) | Defines interfaces for managing SDP records. For more information about these interfaces see Bluetooth Interfaces. |
Bthutil.h (SP + PPC) | Defines functions for setting and retrieving the mode of the Bluetooth operation. |
Winsock2.h (SP + PPC) | Defines standard Windows socket functions that can be used to perform Bluetooth operations. |
Ws2bth.h (SP + PPC) | Defines Bluetooth specific Winsock constants and structures that can be used in Bluetooth applications over Winsock. |
See Also
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.