Sample STI Control Panel Extension

[This is preliminary documentation and subject to change.]

SUMMARY

This sample is a working example of an STI (Still Image) control panel extension. The main purpose of this sample is to show how to add a tab to an STI device's control panel. This control panel extension works in conjunction with the sample user-mode minidriver found in the Sampusd directory. Both parts need to be built to run this example.

BUILDING THE SAMPLE

To build the sample, open a DDK command window, change to the Sampcpl directory, and use the build command. After building, follow the directions in the Sampusd directory to install and use the sample. This sample has not been tested on Alpha platforms. It has not been confirmed to be 64-bit compliant. The code builds properly with Microsoft Visual C® 6.0. Plug and Play and Power Management are not applicable to this sample. Building this sample produces three files: Sampcpl.cpl, Sampcpl.lib, and Sampcpl.exp. Both free and checked versions are buildable. The sample has been tested with a binary that was built with Microsoft Visual C 5.0.

TOOLS

See the Help file in the Sampusd directory for information.

RESOURCES

More information on TWAIN can be found at http://www.twain.org.

To get a logo for your device, consult WHQL for information and test suites.

Your device should support Plug and Play, even if it uses the parallel or serial port. Download Plug and Play specs from their Web site.

CODE TOUR

File Manifest

File			Description

Sampcpl.htm	 	The documentation for this sample (this file)
Sampcpl.cpp	 	Implements control panel extension
Sampcpl.h		Main header file
Sampcpl.rc	  	Main resource file
Sampcpl.rcv	 	Contains version resource
Resource.h	  	Resource defines
Makefile	    	The makefile for the project; do not edit.
Sources	     		DDK build instructions
Sampcpl.def	 	DLL definition

Programming Tour

The name of the DLL and entry point function must be specified on a PropertyPages line in the .inf file, as shown in Sampusd.inf.

Top of page

© 1999 Microsoft Corporation