|
|
|
[求助]获得了一个怪异的Dos MZ Head地址
最初由 Casimodo 发布 不明白,如果你用CreateFileMapping和MapViewOfFile成功的话,pMapping的指针怎么会是0呢?只有创建失败才会是0。你得出的0f00000h地址,正是MapViewOfFile成功后返回的映像地址。 |
|
[求助]在弹出的MessageBox对话框中可以输入数据吗?
wsprintf的参数个数不对,最少有三个参数。 而且你说的意思不太明白,你的意思是说1、先输入数据然后再在MessageBox里显示数据,2、还是先弹出MessageBox,然后再在MessageBox里输入数据?如果是1,你必须编写控制台程序或Win32程序里创建一个窗口和Edit才行。如果是2,如楼上所说,你必须子类化MessageBox,在MessageBox里添加一个Edit才行。 最初由 wiaa 发布 scanf是C运行库里的函数。不过这个函数似乎只能在控制台窗口上使用,不用能Win32上使用。 |
|
菜鸟问题,望高手指导 怎么样给记事本发送字符消息??
HWND nt; nt=FindWindow("Notepad",NULL); ChildWindowFromPoint(nt,POINT(10,10));//错误,你没有保存Edit的句柄。 char cha='a'; if(nt!=NULL) //错误,这里应该判断Edit的句柄才是对的。 { PostMessage(nt,WM_CHAR,cha,1);//错误,你用的是记事本的句柄,应该是Edit的句柄才是正确的。 } //修改如下: #include <windows.h> int WINAPI WinMain(HINSTANCE hInst,HINSTANCE hPrevInst,LPSTR lpCmdLine,int nCmdShow) { HWND nt,ed; char cha='a'; POINT point={10,10}; nt=FindWindow("Notepad",NULL); if (nt) //判断记事本句柄是否为空? { ed=ChildWindowFromPoint(nt,point); //获取Edit的句柄。 if(ed) //判断Edit句柄是否为空? { PostMessage(ed,WM_CHAR,cha,1); //向记事本的Edit发送WM_CHAR消息。 } } } |
|
逍遥风申请『CrackMe & ReverseMe』版块版主
支持逍遥风兄,逍遥风兄在CrackMe & ReverseMe的支持是大家都是有目共睹的。 |
|
[讨论]win32asm子程序中uses寄存器列表的实现问题
是你自己的用法有问题,你push x了一个x值,没有相应的pop出栈,倒致堆栈错乱了,当然会出错了,你如果真要反回x的值,用eax来返回。 |
|
[原创]Windows系统程序设计之系统服务
北极星兄弟高产。 |
|
我写的几个小程序(VB)
没有源码?编程版块放的工具必须带有源码,如果没有源码楼主在这里通知一下,我好转到工具版块去。 |
|
[求助]十六进制数的乘法运算!不会,帮忙!
系统自带的计算器完全可以计算十六进制、十进制、八进制、二进制的运算。 05c3H -> 转十进制是 -> 1475 00abH -> 转十进制是 -> 171 05c3H * 00abH = 3d941H -> 转成十进制是 -> 252225 十进制运算 1475 * 171 = 252225 |
|
问个问题
不会。 |
|
汇编ring3下实现HOOK API[原创]
你现在应该可以上传附件了。 |
|
高手来看看。WH_GETMESSAGE和窗口消息的问题。
要Hook SendMessage必须Hook WH_CALLWNDPROC and WH_CALLWNDPROCRET Hooks The WH_CALLWNDPROC and WH_CALLWNDPROCRET hooks enable you to monitor messages sent to window procedures by the SendMessage function. Windows calls a WH_CALLWNDPROC hook procedure before passing the message to the receiving window procedure, and calls the WH_CALLWNDPROCRET hook procedure after the window procedure has processed the message. The WH_CALLWNDPROCRET hook passes the address of a CWPRETSTRUCT structure to the hook procedure. The structure contains the return value from the window procedure that processed the message, as well as the message parameters associated with the message. Subclassing the window does not work for messages set between processes. |
|
高手来看看。WH_GETMESSAGE和窗口消息的问题。
MSDN里说的很明显了。WH_GETMESSAGE Hook只拦截由GetMessage or PostMessage的消息,不能拦截由SendMessage引起的消息。 he WH_GETMESSAGE hook enables an application to monitor messages about to be returned by the GetMessage or PeekMessage function. You can use the WH_GETMESSAGE hook to monitor mouse and keyboard input and other messages posted to the message queue. |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值