Export (0) Print
Expand All

Bluetooth Code Samples (Compact 7)

3/12/2014

Windows Embedded Compact 7 contains the following code samples that apply to Bluetooth.

Hh802395.Caution(en-us,WinEmbedded.70).gifCaution:
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

Stack-Events Handling Sample

Bluetooth Application Development

Sets up a virtual COM port

%_WINCEROOT%\public\COMMON\sdk\samples\bluetooth\comtest

Virtual COM Port Creation Sample

Bluetooth Application Development

Illustrates the use of the Compact-based Bluetooth stack over the Winsock programming interface

%_WINCEROOT%\public\COMMON\sdk\samples\bluetooth\socktest

Winsock Interface Samples

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

Winsock Options Sample

Bluetooth Application Development

Illustrates how to set up a Bluetooth LAN access server

%_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\gw

Bluetooth

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

Audio Gateway Configuration Tool Sample

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

Bluetooth Settings UI Sample

Implementing Bluetooth in the OS

Implements boot-time activation of the registered Bluetooth peer devices

%_WINCEROOT%\public\COMMON\oak\drivers\bluetooth\SAMPLE\btsvc

Boot-time Service Activation Sample

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

Protocol Extension Samples

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

Bluetooth

Service Discovery Protocol (SDP)

Demonstrates how to use COM routines to parse an SDP response

%_WINCEROOT%\public\ossvcs\oak\Samples\sdpsearch

SDP Search Sample

SDP

Creates and searches SDP records

%_WINCEROOT%\public\ossvcs\oak\Samples\bthnscreate

Bluetooth

SDP

Uses COM routines to print out an SDP record in a human readable form

%_WINCEROOT%\public\ossvcs\oak\Samples\sdpprint

Bluetooth

SDP

Implements commonly used SDP functions

%_WINCEROOT%\public\ossvcs\oak\Samples\sdpcommon

Bluetooth

Object Exchange (OBEX) Protocol

Provides a base for implementing the OBEX Protocol technology

%_WINCEROOT%\public\servers\sdk\samples\obex

OBEX Samples

Show:
© 2014 Microsoft