下你所需,载你所想!
汇集开发技术源码资料

HOOK显卡驱动可用于D3D游戏

:28.708KB :1 :2020-12-12 18:08:56

部分简介

OpenAdapter = GetProcAddress (LoadLibraryA (“nvd3dum.dll”), “OpenAdapter”) ' 获取NVIDIA卡函数地址
.如果真 (OpenAdapter = 0)
OpenAdapter = GetProcAddress (LoadLibraryA (“aticfx32.dll”), “OpenAdapter”) ' 获取AMD卡函数地址
.如果真结束
.如果真 (OpenAdapter = 0)
OpenAdapter = GetProcAddress (LoadLibraryA (“igdumd32.dll”), “OpenAdapter”) ' 获取Intel卡函数地址[win7]
.如果真结束
.如果真 (OpenAdapter = 0)
OpenAdapter = GetProcAddress (LoadLibraryA (“igdumdim32.dll”), “OpenAdapter”) ' 获取Intel卡函数地址[win8]
.如果真结束
.如果真 (OpenAdapter ≠ 0 且 OldOpenAdapter.Pointer = 0)
OldOpenAdapter.Pointer = OpenAdapter
OldOpenAdapter.Subroutine = 到整数 (&WarpOpenAdapter)
Hook_NOP_5 (OldOpenAdapter.Pointer, OldOpenAdapter.Subroutine, OldOpenAdapter.Data, OldOpenAdapter.Call)
.如果真结束
指针 = Direct3DCreate9 (32)

热门推荐

相关文章