能力值:
( LV2,RANK:10 )
|
-
-
[求助]游戏调试的问题
SwitchToThisWindow出错,我把它放在延时函数里面就不出错了。但是单独一个SwitchToThisWindow不起作用,我再它的后面放了ChangeDisplaySettings OllyDBG就切出来了。但是星际的窗口还在上面, 我在想办法让它的窗口消失或者最小化。
怎么在插件里得到OllyDBG正在调试的程序的窗口句柄?
找到方法了用Plugingetvalue就可以得到句柄
代码:
SwitchToThisWindow(g_hMainWnd,false);
DEVMODE devmode;
if(EnumDisplaySettings(0,NULL,&devmode))
{
Beep(30000,1500);
devmode.dmBitsPerPel = 32;
devmode.dmDisplayFrequency = 85;
devmode.dmPelsWidth = 1024;
devmode.dmPelsHeight = 768;
ChangeDisplaySettings(&devmode,0);
}
|
能力值:
( LV2,RANK:10 )
|
-
-
[求助]游戏调试的问题
补充一下出错的代码
extc int _export cdecl ODBG_Pausedex(int reason, int extdata, t_reg *reg, DEBUG_EVENT *debugevent)
{
SwitchToThisWindow(g_hMainWnd,false);
return (0);
}
|