Share via


Printer Discovery Sample

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This sample application illustrates the use of the client-side Windows Embedded CEā€“based Bluetooth port emulator, device discovery, and client-side SDP queries.

The compiled sample generates a PrintUI.exe application. When the icon is clicked, a dialog box appears. From this dialog, the user can discover devices then select a device from the list. In process, it runs inquiry, name queries and SDP queries.

After a Bluetooth device is discovered with serial port profile capabilities, the pairing and authentication process is initiated. If those processes complete successfully, a Bluetooth printer profile appears under the printer program. When a new connection is established through this new Bluetooth profile, the target printer can be selected from applications.

Usage

printui.exe

Sample Location

%_WINCEROOT%\Public\Common\Oak\Drivers\Bluetooth\Sample\PrintUI

Note

This sample application has not been thoroughly tested and is not intended for production use.

See Also

Concepts

Bluetooth Samples

Other Resources

Bluetooth Application Development