mirror of https://github.com/tongzx/nt5src
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.
43 lines
2.3 KiB
43 lines
2.3 KiB
<HTML>
|
|
<HEAD>
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
|
|
<META NAME="Generator" CONTENT="Microsoft Word 97">
|
|
<TITLE>Serenum</TITLE>
|
|
<META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
|
|
</HEAD>
|
|
<BODY TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff" leftmargin="8">
|
|
<FONT FACE="Verdana"><H2><A NAME="MYSAMPLE">Serenum</A> </H2>
|
|
|
|
<H3>SUMMARY</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
|
|
Serenum enumerates Plug-n-Play RS-232 devices that are compliant with the current revision of Plug and Play External COM Device. The specification is available at <a href=http://www.microsoft.com/hwdev/download/respec/pnpcom.rtf>http://www.microsoft.com/hwdev/download/respec/pnpcom.rtf</a>.<P>
|
|
|
|
It loads as an upper filter driver to many different RS-232 device drivers that are compliant with its requirements and performs this service for them. <P>
|
|
|
|
<H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
|
|
To build the sample, run the <B>build</B> command. Once built, the sample produces one binary: Serenum.sys. The sample is 64-bit compliant, works on both x86 and Alpha platforms, and supports both Plug and Play and Power Management. There is no one Inf for serenum because it is loaded as a filter driver in different driver stacks. An example of this can be found in %WINDIR%\inf\msports.inf. <P>
|
|
|
|
|
|
<H3>CODE TOUR</H3>
|
|
<H4>File Manifest</H4>
|
|
</FONT><U><PRE>File		Description
|
|
</U>
|
|
Enum.c Functions that enumerate external serial devices—the main purpose of this driver
|
|
Makefile Makefile for building this driver
|
|
Pnp.c Plug and Play support code
|
|
Power.c Power support code
|
|
Serenum.c Basic driver functionality
|
|
Serenum.h Local header with defines, prototypes, etc
|
|
Serenum.rc Resource script
|
|
Sources Data file for build.exe
|
|
String.c String handling support; mainly ASCII to UNICODE functionality
|
|
|
|
|
|
</FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
|
|
<TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
|
|
<TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
|
|
<P></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<FONT FACE="MS Sans Serif" SIZE=1><P>© 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
|
|
</HTML>
|