mirror driver学习(一. 编译)

Mirror Diverwindows

mirror driver is a display driver for a virtual device that mirrors the drawing operations of one or more additional physical display devices. It is implemented and behaves much like any other display driver; however, its paired video miniport driver is minimal in comparison to a typical miniport driver. See Mirror Driver Support in Video Miniport Drivers (Windows 2000 Model) for more information about miniport drivers in mirroring systems. The Windows Driver Kit (WDK) through the Windows 7 edition (Version 7600) contains a sample mirror driver which includes component source files that are contained in three directories.app


学习mirror driver以前,先编译一下sampleide


1. 下载windows driver kit工具

驱动的全套开发工具,WDK,能够在微软的官方网站下载,下载网址:学习

http://download.microsoft.com/download/4/A/2/4A25C7D5-EFBE-4182-B6A9-AE6850409A78/GRMWDK_EN_7600_1.ISO开发工具

WDK适用于Windows 8如下的系统,目前在微观官网上陈列的只有适合Windows8系统的WDK网站

https://msdn.microsoft.com/en-us/library/windows/hardware/ff557573%28v=vs.85%29.aspx
ui

并要求以Visual Studio 2013做为开发工具。spa


2. 安装选择默认路径,c:\WinDDK\ 便可component

WinDDK安装成功后,有若干各编译环境


个人系统是intel 64位, windows7, 因此操做以下:

    开始始菜单-> windows driver kits -> wdk 7600 xxxx -> build environment -> win7 -> ia64 free build environment


3. 进入sample的路径, 输入 build sZ 命令进行编译

    sample下有三个文件夹,其中:

\app 下是一个关于如何使用mirror driver的例子,以及mirror driver inf文件。

\mini下是driver pairminiport部分

         \disp 下是driver pair的另一个部分

         关于driver pair详见:

https://msdn.microsoft.com/en-us/library/windows/hardware/hh439643%28v=vs.85%29.aspx

 

编译时,须要对于每一个文件夹下的文件都进行编译,使用编译脚本命令build sZ,获得对应的二进制输出。

        


获得的输出以下:

\mini\objfre_win7_amd64\amd64\mirror.sys

\disp\objfre_win7_amd64\amd64\mirror.dll

 

把这两个文件, 以及\app>mirror.inf复制到一个文件夹下。

相关文章
相关标签/搜索