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.
 
 
 
 
 
 

50 lines
3.1 KiB

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-
1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>Mirror</TITLE>
</HEAD>
<BODY LINK="#0000ff">
<FONT FACE="Verdana" SIZE=5><H2>Mirror</H2>
</FONT><FONT FACE="Verdana" SIZE=2>
<P><span style="color:#FF0000;font-size:10pt;font-family:Arial">[This is preliminary
documentation and subject to change.]</span></P>
<H3>SUMMARY</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
This sample demonstrates how to use a driver to perform video mirroring. When video mirroring is active, each time the system draws to the primary video device at a location inside the mirrored area, a copy of the draw operation is executed on the mirrored video device in real time. With this mirroring scheme, you can simultaneously draw the same output to several video devices. Since the driver allocates memory dynamically for targets, the number of displays that your system can support depends on how much free memory you have at mirror-time.
<P>
This sample is designed to provide information on a standard, generic method of mirroring. This eliminates the need for special case-by-case solutions which were used before this support was added to the system. The sample runs only on the Microsoft® Windows® 2000 platform. It features commented source code that documents in detail how the code works, to make it easy to modify and extend. Please note that this is the first version of the video mirror sample. Additional functionality may be added to the sample in future releases.
<P>
The sample is comprised of three pieces:
<p>
<UL>
<LI>The display driver, in \Ntddk\Src\Video\Displays\Mirror\Dll.
<LI>The video miniport driver, in \Ntddk\Src\Video\Miniport\Mirror. The miniport driver included here is a skeleton. It simply returns success status for all miniport calls made by the system as there is no real hardware controlled by the mirror sample.
<LI>An application that is a sample user-mode service, in \Ntddk\Src\Video\Displays\Mirror\App.
</UL>
For additional information about this sample and about mirror drivers in general, please see \Ntddk\Src\Video\Displays\Mirror\App\Readme.txt, and the Mirror Drivers topic in the Graphics Design Guide.
<P>
<H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana"
SIZE=2><P>
Install the driver by using the included .ini file, then run the sample application. The application will attach the driver to the desktop, and mirroring will be active. At present, the sample application is a command-line Win32 program.
<P>
<B>Notes</B>: The sample is x86 compatible. It also compiles correctly in the 64-bit environment. All aspects of the kernel-mode execution environment apply to the display and video miniport driver portions of this sample.
</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>&copy; Microsoft Corporation 1999</FONT><FONT
FACE="Verdana" SIZE=2> </P></FONT></BODY>
</HTML>