Bluetooth Code Samples (Compact 7)
3/12/2014
Windows Embedded Compact 7 contains the following code samples that apply to Bluetooth.
Warning
The sample code is only a starting point for development. As with any code, you must ensure proper error handling, identify security risks, and thoroughly test it before considering it for production use.
Feature area | Description | Location | Related topic |
---|---|---|---|
Bluetooth Application Development |
Illustrates the use of a message queue to handle event notifications that are received from the Bluetooth stack |
%_WINCEROOT%\public\COMMON\sdk\samples\bluetooth\btnotify |
|
Bluetooth Application Development |
Sets up a virtual COM port |
%_WINCEROOT%\public\COMMON\sdk\samples\bluetooth\comtest |
|
Bluetooth Application Development |
Illustrates the use of the Compact-based Bluetooth stack over the Winsock programming interface |
%_WINCEROOT%\public\COMMON\sdk\samples\bluetooth\socktest |
|
Bluetooth Application Development |
Illustrates the use of the Compact-based Bluetooth stack Winsock programming interface for getting and setting socket options |
%_WINCEROOT%\public\COMMON\sdk\samples\bluetooth\opttest |
|
Bluetooth Application Development |
Illustrates how to set up a Bluetooth LAN access server |
%_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\gw |
|
Implementing Bluetooth in the OS |
Demonstrates how to use the Audio Gateway Service IOCTLs to configure the Audio Gateway |
%_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\ag\btagconfig |
|
Implementing Bluetooth in the OS |
Implements a Microsoft Silverlight for Windows Embedded UI for managing Bluetooth settings |
%_WINCEROOT%\public\ossvcs\oak\Samples\bthsettings %_WINCEROOT%\public\ossvcs\oak\Samples\bthssvc |
|
Implementing Bluetooth in the OS |
Implements boot-time activation of the registered Bluetooth peer devices |
%_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\btsvc |
|
Implementing Bluetooth in the OS |
Illustrates how to create a Bluetooth protocol extension for Windows Embedded Compact |
%_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\btscosnd %_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\l2capdev %_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\l2capapi |
|
Implementing Bluetooth in the OS |
Implements boot-time activation of registered Bluetooth peers and provides an authentication UI |
%_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\btmodem |
|
Service Discovery Protocol (SDP) |
Demonstrates how to use COM routines to parse an SDP response |
%_WINCEROOT%\public\ossvcs\oak\Samples\sdpsearch |
|
SDP |
Creates and searches SDP records |
%_WINCEROOT%\public\ossvcs\oak\Samples\bthnscreate |
|
SDP |
Uses COM routines to print out an SDP record in a human readable form |
%_WINCEROOT%\public\ossvcs\oak\Samples\sdpprint |
|
SDP |
Implements commonly used SDP functions |
%_WINCEROOT%\public\ossvcs\oak\Samples\sdpcommon |
|
Object Exchange (OBEX) Protocol |
Provides a base for implementing the OBEX Protocol technology |
%_WINCEROOT%\public\servers\sdk\samples\obex |