首页
社区
课程
招聘
help!!!winxp的消息断点断不下!!!
发表于: 2006-1-21 13:47 4321

help!!!winxp的消息断点断不下!!!

2006-1-21 13:47
4321
用driver studio3.2的softic,在windowsxp环境下,用bmsg设置消息断点,如bmsg xxx(句柄号) wm_command,显示syntax error,
   
   但改成wm_command对应的常量0111来设置就可以,如:bmsg xxx(句柄号) 0111就可以,其他的断点也只有用它对应的值来设置才行,怎么回事啊?
   
   而且wm_command断不下来,而wm_gettext可以,大家有没有类似的情况?请告知.谢了!!!

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (5)
雪    币: 206
活跃值: (15)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
SOFTICE?我不会用~
水一帖了
2006-1-21 13:53
0
雪    币: 277
活跃值: (312)
能力值: ( LV9,RANK:330 )
在线值:
发帖
回帖
粉丝
3
我                              不知道
2006-1-21 14:07
0
雪    币: 201
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
我没用过softic,不好意思
2006-1-21 15:27
0
雪    币: 161
活跃值: (231)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
5
Syntax
BMSG hWnd [L] [begin-msg [end-msg ]] [IF expression [DO "command1;command2;..."]]

格式:
BMSG 窗口句柄 [记录] [消息范围起始 [消息范围末尾]] [如果 表达式 [做 "命令1;命令2;...."]]

hWnd
Window handle value returned from CreateWindow or CreateWindowEX.

L
Logs messages to the SoftICE Command window.

begin-msg
Single Windows message or lower message number in a range of Windows messages. If you do not specify a range with an end-msg, only the begin-msg will cause a break.

Note:  For both begin-msg and end-msg, the message numbers can be specified either in hexadecimal or by using the actual ASCII names of the messages, for example, WM_QUIT.

end-msg
Higher message number in a range of Windows messages.

IF expression
Conditional expression: the expression must evaluate to TRUE (non-zero) for the breakpoint to trigger.

DO command
Breakpoint action: A series of SoftICE commands can execute when the breakpoint triggers.

Note:  You can combine breakpoint count functions (BPCOUNT, BPMISS, BPTOTAL, BPLOG, and BPINDEX) with conditional expressions to monitor and control breakpoints based on the number of times a particular breakpoint has or has not triggered. See the chapter on “Using Breakpoints,” in the Using SoftICE document.

Use
The BMSG command is used to set breakpoints on a window’s message handler that will trigger when it receives messages that either match a specified message type, or fall within an indicated range of message types.

If you do not specify a message range, the breakpoint applies to ALL Windows messages.

If you specify the L parameter, SoftICE logs the messages into the Command window instead of popping up when the message occurs.

When SoftICE does pop up on a BMSG breakpoint, the instruction pointer (CS:[E]IP) is set to the first instruction of the message handling procedure. Each time SoftICE breaks, the current message displays in the following format:

hWnd=xxxx wParam=xxxx lParam=xxxxxxxx msg=xxxx message-name

Note:  These are the parameters that are passed to the message procedure. All numbers are hexadecimal. The message-name is the Windows defined name for the message.

To display valid Windows messages, enter the WMSG command with no parameters. To obtain valid window handles, use the HWND command.

You can set multiple BMSG breakpoints on one window-handle, but the message ranges for the breakpoints might not overlap.

Example
This command sets a breakpoint on the message handler for the Window that has the handle 9BC. The breakpoint triggers and SoftICE pops up when the message handler receives messages with a type within the range WM_MOUSEFIRST to WM_MOUSELAST, inclusive. This range includes all of the Windows mouse messages.

:BMSG 9BC wm_mousefirst wm_mouselast

The next command places a breakpoint on the message handler for the Window with the handle F4C. The L parameter causes SoftICE to log the breakpoint information to the SoftICE Command window when the breakpoint is triggered, instead of popping up. The message range on which the breakpoint triggers includes any message with a type value less than or equal to WM_CREATE. You can view the output from this breakpoint being triggered by popping into SoftICE and scrolling through the command buffer.

:BMSG f4c L 0 wm_create
2006-1-21 16:56
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
谢谢楼上的详细帮助,但是我的确是照这个格式输入的,但是就是语法错,真郁闷了
命令如下:
  bmsg 0120386 WM_COMMAND
按下回车就报错:
  Syntax error
此时用bl查看:
bl
00)  BMSG 120386

然而用命令;
  bmsg 0120386 0111则可以;
在用bl查看:
bl
00) BMSG 120386 WM_COMMAND
此时就正常了,但是按下了相应程序的command还是没断下....

请各位路过的兄弟没碰到过这种情况的就请把帖子顶一下,谢谢了!!
2006-1-21 17:51
0
游客
登录 | 注册 方可回帖
返回
//