Message-ID: <4lZgD7$py5@bbs.tsinghua.edu.cn>
Subject: ����������诖������
Date: Sat, 01 May 2010 02:05:43 +0000
From: shuitian@smth.edu.cn-SPAM.no (shuitian)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.security.mbox.zip!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!news.neu.edu.cn!news.byr.edu.cn!SMTH
Newsgroups: cn.bbs.comp.security
Organization: BBS 水木�华站
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Security/r/M.1272679543.10
Lines: 27
X-Original-Bytes: 1493
Xref: 74.82.202.154 cn.bbs.comp.security:13838

������������未���摹�fputws((LPCTSTR)pMsg->lParam��fp�����������啊��pMsg-
>lParam�恰�A pointer to a null-terminated string that is the window text".���械�
时�����"Debug Assertion failed"说"xx"�诖�占���只���摹�������位��牛要咋�陌��� 
�屑������� 
  
LRESULT WINAPI CallWndProc(int nCode,WPARAM wparam,LPARAM lparam)  
{ 
if(nCode<0) 
{ 
     return CallNextHookEx(CurrentHook,nCode,wparam,lparam); 
} 
FILE *fp;  
PCWPSTRUCT pMsg=(PCWPSTRUCT)lparam; 
fp=fopen("D:\\My Documents\\Visual Studio 
2008\\Projects\\TestHook_exe\\TestHook_exe\\MsgHook.txt","a"); 
if(fp!=NULL&&pMsg->message==WM_SETTEXT) 
{ 
     fprintf(fp,"\nWindow:%08x Message ID:%08x\n",pMsg->hwnd,pMsg->message); 
     fprintf(fp,"Window Text:"); 
     fputws((LPCTSTR)pMsg->lParam,fp); 
} 
fclose(fp); 
return(CallNextHookEx(CurrentHook,nCode,wparam,lparam)); 
} 
--
	������一���薹����艿�前��

�� ��源:��BBS 水木�华站 http://smth.edu.cn��[FROM: 118.229.129.*]