Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
4.0 KiB

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
  4. <META NAME="Generator" CONTENT="Microsoft Word 97">
  5. <TITLE>STI Test Application</TITLE>
  6. <META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
  7. </HEAD>
  8. <BODY TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff" leftmargin="8">
  9. <FONT FACE="Verdana"><H2><A NAME="MYSAMPLE">STI Test Application</A> </H2>
  10. <span style="color:#FF0000">[This is preliminary documentation and subject to change.]</span>
  11. <H3>SUMMARY</H3> </FONT><FONT FACE="Verdana" SIZE=2><P>
  12. This sample is an application that can be used to test a Still Image (STI) user-mode minidriver. It can also be used as sample code for an STI-aware application or TWAIN data source.<P>
  13. <H3>BUILDING THE SAMPLE</H3> </FONT><FONT FACE="Verdana" SIZE=2><P>
  14. To build the sample, open a DDK command window, change to the App directory, and use the <B>build</B> command. Before you can use the sample, you need to install an STI device or the Sample User-mode Minidriver, Sampusd. Any device that appears in the Scanners and Cameras control panel is an STI device.<P>
  15. This sample has been tested on Alpha platforms. It has not been confirmed to be 64-bit compliant. The code builds properly with Visual C 6.0. Plug and Play and Power Management do not apply to this sample. <P>
  16. Building this sample produces one file: Stillvue.exe. Both free and checked versions are buildable. The sample has been tested with a binary that was built with Visual C 5.0.<P>
  17. <H3>TOOLS</H3> </FONT><FONT FACE="Verdana" SIZE=2><P>
  18. The Stillvue app can be run from a debugger or on its own. When the application is run, it presents several menu choices. Each menu choice corresponds to an STI function call. The functions should be executed in the same order as an application or TWAIN data source would call them. For example, the first thing to do is to call <B>IStillImage::StiCreateInstance</B> by selecting menu item <B>IStillImage</B>, <B>StiCreateInstance</B>. Next select <B>IStillImage</B>, <B>GetDeviceList</B>, and select a device with <B>IStillImage</B>,<B> CreateDevice</B>. Other functions can be selected as needed for your testing requirements.<P>
  19. <H3>RESOURCES</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  20. More information on TWAIN can be found at <A HREF="http://www.twain.org">http://www.twain.org</A>.<P>
  21. To get a logo for your device, consult <A HREF="http://www.microsoft.com/hwtest">WHQL</A> for information and test suites.<P>
  22. Your device should support Plug and Play, even if it uses the parallel or serial port. Download Plug and Play specs from their <A HREF="http://www.microsoft.com/hwdev/respec/pnpspecs.htm">Web site</A>.<P>
  23. <H3>CODE TOUR</H3>
  24. <H4>File Manifest</H4>
  25. </FONT><U><PRE>File&#9;&#9; Description
  26. </U>
  27. App.htm&#9; The documentation for this sample (this file)
  28. Stillvue.cpp&#9; Implements application
  29. Stisvc.cpp&#9; Generic implementation of scanning functions
  30. Winx.cpp&#9; Implements utility functions
  31. Wsti.cpp&#9; Implements calls to each of the STI functions
  32. Stillvue.h&#9; Main application header file
  33. Stivar.h&#9; Global STI variable declarations
  34. Winx.h&#9; Utility function header
  35. Resource.h&#9; Resource header
  36. Stillvue.rc&#9; Resource file
  37. Scan1.ico&#9; Application icon
  38. Makefile&#9; The makefile for the project; do not edit.
  39. Sources&#9; DDK build instructions
  40. </pre></FONT><FONT FACE="Verdana" SIZE=2><P><H4>Programming Tour</H4></FONT><FONT FACE="Verdana" SIZE=2><P>
  41. Each of the STI functions called by the Stillvue application is documented in the DDK documentation under Still Image Interfaces, IStiUSD Interface.
  42. </FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
  43. <TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
  44. <TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
  45. <P></TD>
  46. </TR>
  47. </TABLE>
  48. <FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
  49. </HTML>