To install:
1. Copy mirror.dll to %winnt%\system32, mirror.sys to %winnt%\system32\drivers
2. These are added during .inf file installation:
Sets registry values (where '#' is a number):
HKLM\System\CurrentControlSet\Services\mirror
device#\Device Description "Microsoft Mirror Driver" (SZ)
device#\Installed Display Drivers "mirror" (MULTI_SZ)
device#\MirrorDriver 0x1 (DWORD)
device#\xxx possibly other keys
enum\xxx keys for enumerating devices
3. When invoking the mirrored driver on a mirrored device:
To change the settings for your mirrored device, you must know the '\\.\DISPLAY#' name
associated with your mirrored display. In the case of multiple instances, '#' will be
a different number. This can be found by iterating through the available display devices
using EnumDisplayDevices(). For reference/testing only, this information can be
found under the following key:
HKLM\Hardware\DeviceMap\Video
To attach the mirrored device to the desktop pdev list, you must add a registry value
'Attach.ToDesktop' = 0x1. Subsequent ChangeDisplaySettings() will then dynamically load
the mirrored display driver for use.
HKLM\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\
Services\mirror [where 'mirror' is short name of mirrored surface]
device#\Attach.ToDesktop 0x1 (DWORD)
To disable the attachment, set 'Attach.ToDesktop' to 0x0. Otherwise your driver will
invoked again at boot up time. There are also other Default.Settings values saved under
this key, use ChangeDisplaySettings() with dwFlags=CDS_UPDATEREGISTRY to properly save
them.
To create a DC, device managed bitmap, etc. using the mirrored surface, use the
ordinary GDI APIs. To create the DC specify, use the following:
HDC hdc = CreateDC("DISPLAY", // driver name
deviceName, // example 'mirror' device name
NULL,
NULL);
See DDK sample for a working demonstration.
Minimum requirements for barebones mirrored display driver:
DrvEnableDriver [exported]
DrvEnablePDEV
DrvCompletePDEV
DrvDisablePDEV
DrvEnableSurface
DrvDisableSurface
DrvBitBlt
DrvCopyBits
DrvCreateDeviceBitmap
DrvDeleteDeviceBitmap
DrvTextOut
Minimum requirements for barebones mirrored miniport driver:
DriverEntry [exported]
HwFindAdapter
HwInitialize
HwStartIO
Since there is no physical display device associated with a mirrored surface, these routines
can return positive results.
没有合适的资源?快使用搜索试试~ 我知道了~
mirror driver 驱动源码, 从win2000 ddk 的源码示例里拿出来的
共231个文件
c:114个
h:67个
sources:8个
需积分: 15 18 下载量 25 浏览量
2018-02-10
21:47:16
上传
评论
收藏 973KB RAR 举报
温馨提示
mirror driver 驱动源码, 从win2000 ddk 的源码示例里拿出来的. 原样打包.
资源推荐
资源详情
资源评论
收起资源包目录
mirror driver 驱动源码, 从win2000 ddk 的源码示例里拿出来的 (231个子文件)
ddraw.c 116KB
mcd.c 116KB
d3ddx6.c 107KB
ddraw3d.c 91KB
permedia.c 91KB
d3dstate.c 89KB
d3d.c 88KB
d3ddx6.c 82KB
bltmm.c 77KB
escape.c 76KB
bitblt.c 73KB
ENABLE.C 70KB
POINTER.C 68KB
dd.c 68KB
fastfill.c 65KB
d3dstate.c 65KB
enable.c 64KB
d3d.c 62KB
multi.c 62KB
mcdtri.c 58KB
TEXTOUT.C 56KB
lpb.c 55KB
STRIPS.C 54KB
mcdtex.c 54KB
HEAP.C 51KB
LINES.C 48KB
FILLPATH.C 48KB
permdata.c 48KB
permedia.c 46KB
pointer.c 46KB
solidfil.c 45KB
mcdutil.c 45KB
BITBLT.C 45KB
lines.c 44KB
VIDEO.C 43KB
draw.c 43KB
fillpath.c 39KB
d3dhw.c 39KB
DEBUG.C 38KB
d3dtess.c 38KB
mcdclip.c 36KB
ddsurf.c 36KB
text3d.c 33KB
ddstrblt.c 29KB
patnfill.c 28KB
heap.c 28KB
d3dgntri.c 27KB
stretch.c 27KB
download.c 27KB
text.c 25KB
ddcpyblt.c 24KB
color.c 23KB
color.c 23KB
power.c 23KB
s3dtri.c 23KB
mcdrend.c 21KB
ddldblt.c 20KB
p2ctxt.c 20KB
screen.c 19KB
debug.c 18KB
mcdprim.c 18KB
STROKE.C 18KB
hwinit.c 17KB
BRUSH.C 17KB
bank.c 17KB
enable.c 15KB
ddblt.c 15KB
log.c 15KB
permmem.c 15KB
d3dtxman.c 15KB
s3dline.c 14KB
thunk.c 14KB
enable.c 14KB
pointer.c 14KB
PALETTE.C 14KB
thunks.c 13KB
iline.c 12KB
brush.c 11KB
strips.c 11KB
d3dtri.c 10KB
hwmisc.c 10KB
palette.c 9KB
d3dtri.c 9KB
d3dline.c 9KB
palette.c 9KB
d3dline.c 9KB
PCIPROBE.C 9KB
screen.c 9KB
d3dutil.c 9KB
DDDEBUG.C 8KB
stroke.c 8KB
misc.c 7KB
INTERUPT.C 7KB
clip.c 7KB
d3dpoint.c 7KB
mcdpoint.c 6KB
DDENABLE.C 6KB
mini.c 6KB
d3dpoint.c 5KB
mcdline.c 5KB
共 231 条
- 1
- 2
- 3
资源评论
waj19831
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功