This sample shows how to write Windows Image Acquisition (WIA) user interface (UI) extensions. It adds tabs to the device properties dialog (accessible from Explorer) and it adds commands to the context menu for the sample camera device’s icon. These extensions are applied to the WIA sample camera from this DDK by providing implementations of IShellPropSheetExt and IContextMenu.
At the time of this writing, WIA is only supported on Windows ME and Windows XP. This sample will not work on Windows 98 or Windows 2000.
To build the sample follow these steps:
1. In the Start menu, select "Free Build Environment" or "Checked Build Environment" under "Windows DDK" to open a command window and set basic environment variables needed to build drivers.
2. Change to the directory containing the sample driver source code, src\wdm\wia\extend.
3. Execute the "build" command. After the build completes, a library named Extend.dll will be located in a subdirectory.
4. Also build the sample camera driver located in the src\wdm\wia\wiacam directory.
To use the driver, follow the instructions in the sample camera readme file, wiacam.htm.
To test the sample UI extensions, open the Scanners and Cameras folder in Explorer.
WIA information: http://www.microsoft.com/hwdev/tech/wia
DDK information: http://www.microsoft.com/ddk/
Files Description------------ -------------------------------------------------------
classes.h Defines interface for extensionsextend.cpp Implements UI extensionsextend.def Linker command fileextend.h Header file for UI extensionsextend.rc Resources for UI extensionsmakefile Used for building the UI extensions—do not modifyprecomp.h Precompiled header file containing all included headersresource.h Header file for resourcesshellext.cpp Implements IcontextMenu and IShellPropSheetExt
sources Controls building of UI extensionsstdafx.cpp Includes standard header fileswiacamui.rgs Registry entries for UI extensions
extend.htm This readme fileextidl.idl MIDL interface definition filereadme.htm Project readme filetcamprop.h Header file for private device propertiestestdev.ico Sample device icon
[TO
DO]