|
[讨论]关于directx 后台截屏的
下了2个网游的客户端 圣境传说、九阴真经 都能成功写屏,九阴真经由于执行文件是动态生成的,没有物理路径,我测试程序里截图直接这样写pDxdevice->GetBackBuffer(0,0, D3DBACKBUFFER_TYPE_MONO, &pFrontSurface ); D3DXSaveSurfaceToFile( "test.jpg", D3DXIFF_JPG, pFrontSurface, NULL, NULL ) 所以没截到,我改成D3DXSaveSurfaceToFile( "d:\\test.jpg", D3DXIFF_JPG, pFrontSurface, NULL, NULL ),还是同样可以。都没人顶贴 懒得改测试程序了。 |
|
[求助]如何获取游戏的全屏句柄?谢谢
http://bbs.pediy.com/showthread.php?t=152852 利用api hook 能直接获取D3DDevice,就可以做任何事情,截图,渲染,D3DXSaveSurfaceToFileInMemory 直接存到内存,再找图找色 |
|
|
|
[讨论]关于directx 后台截屏的
附上截图 运用了线程注入+hook api |
|
[讨论]关于directx 后台截屏的
简单说下测试程序的使用 里面有2个文件 test。exe和hook。dll 把这2个文件拷入目标程序的目录 当然 也可以把dll直接拷入windows\system32 目录 test.exe 里的edit里面输入已经运行的进程pid( 可以通过任务管理器查看-选择列-勾选PID(进程标示符)) ,然后点ok 就能截图生成test。jpg 在xp下测试通过 vista和win7 不行 |
|
[讨论]关于directx 后台截屏的
在网上查阅到的2-3个例子都是需要在本程序使用DetourCreateProcessWithDll之类的,由本程序启动需要截屏的directx程序,截获Direct3DCreate9 得到Direct3D对象的接口指针 -》CreateDevice 得到d3ddevice 这样局限性比较大。我的程序可以直接挂钩已经在执行的进程,直接截屏。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值