UltraVNC听说过.但听说驱动部分是不开源的.
"这个东西是国外开源的项目"有没有URL?
取屏幕,如果从底层入手的话,Win98下一般是用DDI HOOK(90年代非常红火的多媒体教室抓取屏幕多用此办法,那时候还没有Win2000).而NT系统下有两种办法,一种是mirro driver.一种是Graphics Filter.从效率上面来说,Graphics Filter比Mirro速度和效率高很多.因为Mirro其实是虚拟显卡.
xiaoxinya:我那个其实修改自DDK SAMPLE下面的Mirro Driver例子.(安装DDK后就有了).留下信箱,我把代码发你自己编译吧.
===============================================================
Mirror
[This is preliminary documentation and subject to change.]
SUMMARY
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.
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.
The sample is comprised of three pieces:
The display driver, in /Ntddk/Src/Video/Displays/Mirror/Dll.
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.
An application that is a sample user-mode service, in /Ntddk/Src/Video/Displays/Mirror/App.
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.
BUILDING THE SAMPLE
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.
Notes: 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.
Top of page
© Microsoft Corporation 1999