This sample shows how to write a Windows Image Acquisition (WIA) user-mode microdriver for a camera. It simulates a camera by reading images from a directory on the hard disk. This sample driver can be used as a starting point for your development, but your driver should access the camera hardware through one of the kernel drivers provided with Windows.
This sample is implemented in 3 parts. This is part is the microdriver. The “Wiacam” sample implements the WIA minidriver that calls this driver. The third part is the sample UI extension “Extend.”
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\microcam.
3. Execute the "build" command. After the build completes, a driver named Fakecam.dll will be located in an object subdirectory.
4. Also build the minidriver in src\wdm\wia\wiacam and the user interface extension located in the src\wdm\wia\extend directory.
To use the driver, follow the instructions in the wiacam readme file, wiacam.htm.
WIA information: http://www.microsoft.com/hwdev/tech/wia
DDK information: http://www.microsoft.com/ddk/
Files Description
------------ -------------------------------------------------------
FakeCam.cpp Implements the camera microdriver
fakecam.def Linker command file
FakeCam.h Header for camera microdriver
fakecam.htm This readme
fakecam.rc Main resource file
fakecam.rcv Additional resource definitions
makefile Used for building the driver--do not modify
pch.h Precompiled header
resource.h Header file for resources
sources Controls building of driver