<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Timothy&#039;s Space &#187; Message</title>
	<atom:link href="http://www.xiaozhou.net/tag/message/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaozhou.net</link>
	<description>君看一叶舟，出没风波里</description>
	<lastBuildDate>Thu, 02 Sep 2010 15:10:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>截获系统注销时候的消息</title>
		<link>http://www.xiaozhou.net/vcdevelopment/when-the-news-of-cancellation-of-interception-system-2004-12-15.htm</link>
		<comments>http://www.xiaozhou.net/vcdevelopment/when-the-news-of-cancellation-of-interception-system-2004-12-15.htm#comments</comments>
		<pubDate>Wed, 15 Dec 2004 03:09:33 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[VC开发]]></category>
		<category><![CDATA[catch]]></category>
		<category><![CDATA[logoff]]></category>
		<category><![CDATA[Message]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=48</guid>
		<description><![CDATA[使用WH_CALLWNDPROC类型钩子，回调函数如下： LRESULT CALLBACK MyProc(int code, WPARAM wParam, LPARAM lParam) { switch (((CWPSTRUCT*)lParam)->message) { case WM_QUERYENDSESSION: { switch( ((CWPSTRUCT*)lParam)->lParam ) { case ENDSESSION_LOGOFF: { FILE *pFile = NULL; ((CWPSTRUCT*)lParam)->message = 0; AfxMessageBox(TEXT(&#8220;log off&#8221;)); return 0; } break; } } } return ::CallNextHookEx(g_hMessage, code, wParam, lParam); } 你可能也对下列文章感兴趣2004年10月29日 -- VC中的自定义消息 (0)2004年09月7日 -- 局域网消息轰炸机 (0)]]></description>
			<content:encoded><![CDATA[<p>使用WH_CALLWNDPROC类型钩子，回调函数如下：</p>
<p>LRESULT CALLBACK MyProc(int code, WPARAM wParam, LPARAM lParam)<br />
{<br />
switch (((CWPSTRUCT*)lParam)->message)<br />
{<br />
case WM_QUERYENDSESSION:<br />
{<br />
switch( ((CWPSTRUCT*)lParam)->lParam )<br />
{<br />
case ENDSESSION_LOGOFF:<br />
{<br />
FILE *pFile = NULL;<br />
((CWPSTRUCT*)lParam)->message = 0;<br />
AfxMessageBox(TEXT(&#8220;log off&#8221;));<br />
return 0;<br />
}<br />
break;<br />
}<br />
}<br />
}<br />
return ::CallNextHookEx(g_hMessage, code, wParam, lParam);<br />
}</p>
<h3  class="related_post_title">你可能也对下列文章感兴趣</h3><ul class="related_post"><li>2004年10月29日 -- <a href="http://www.xiaozhou.net/vcdevelopment/vc-in-the-custom-message-2004-10-29.htm" title="VC中的自定义消息">VC中的自定义消息</a> (0)</li><li>2004年09月7日 -- <a href="http://www.xiaozhou.net/myworks/lan-message-bomber-2004-09-07.htm" title="局域网消息轰炸机">局域网消息轰炸机</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/vcdevelopment/when-the-news-of-cancellation-of-interception-system-2004-12-15.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VC中的自定义消息</title>
		<link>http://www.xiaozhou.net/vcdevelopment/vc-in-the-custom-message-2004-10-29.htm</link>
		<comments>http://www.xiaozhou.net/vcdevelopment/vc-in-the-custom-message-2004-10-29.htm#comments</comments>
		<pubDate>Fri, 29 Oct 2004 07:21:43 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[VC开发]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[Message]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=43</guid>
		<description><![CDATA[Windows 应用程序所要做的每项工作几乎都是基于消息处理的， Windows 系统消息分为常用 Windows 消息，控件通知消息和命令。然而，有时我们需要定义自己的消息来通知程序什么事情发生了，这就是用户自定义消息。 ClassWizard 并没有提供增加用户自定义消息的功能，所以要使用用户自定义消息，必须手工编写代码。然后 ClassWizard 才可以象处理其它消息一样处理你自定义的消息。具体做法如下详解： 　　 第一步：定义消息。一个消息实际上是开发 Windows95 应用程序时， Microsoft 推荐用户自定义消息至少是 WM_USER+100 ，因为很多新控件也要使用 WM_USER 消息。 　　 第二步：实现消息处理函数。该函数使用 WPRAM 和 LPARAM 参数并返回 LPESULT 。 　　 LPESULT CMainFrame::OnMyMessage(WPARAM wParam, LPARAM lParam){// TODO: 处理用户自定义消息 AfxMessageBox(&#8221; 处理用户自定义消息 &#8220;); return 0;} 　　 第三步：在类头文件的 AFX_MSG 块中说明消息处理函数： 　　 class CMainFrame:public CMDIFrameWnd{ 　　 &#8230; 　　 // 一般消息映射函数 　　 [...]]]></description>
			<content:encoded><![CDATA[<p>Windows 应用程序所要做的每项工作几乎都是基于消息处理的， Windows 系统消息分为常用 Windows 消息，控件通知消息和命令。然而，有时我们需要定义自己的消息来通知程序什么事情发生了，这就是用户自定义消息。 ClassWizard 并没有提供增加用户自定义消息的功能，所以要使用用户自定义消息，必须手工编写代码。然后 ClassWizard 才可以象处理其它消息一样处理你自定义的消息。具体做法如下详解：</p>
<p>　　 第一步：定义消息。一个消息实际上是开发 Windows95 应用程序时， Microsoft 推荐用户自定义消息至少是 WM_USER+100 ，因为很多新控件也要使用 WM_USER 消息。</p>
<p>　　 第二步：实现消息处理函数。该函数使用 WPRAM 和 LPARAM 参数并返回 LPESULT 。</p>
<p>　　 LPESULT CMainFrame::OnMyMessage(WPARAM wParam, LPARAM lParam){// TODO: 处理用户自定义消息 AfxMessageBox(&#8221; 处理用户自定义消息 &#8220;); return 0;}</p>
<p>　　 第三步：在类头文件的 AFX_MSG 块中说明消息处理函数：<br />
　　 class CMainFrame:public CMDIFrameWnd{</p>
<p>　　 &#8230;</p>
<p>　　 // 一般消息映射函数</p>
<p>　　 protected:</p>
<p>　　 // {{AFX_MSG(CMainFrame)</p>
<p>　　 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);</p>
<p>　　 afx_msg void OnTimer(UINT nIDEvent);</p>
<p>　　 afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam);</p>
<p>　　 //}}AFX_MSG</p>
<p>　　 DECLARE_MESSAGE_MAP()}</p>
<p>　　 第四步：在用户类的消息块中，使用 ON_MESSAGE 宏指令将消息映射到消息处理函数中。<br />
　　 BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)</p>
<p>　　 //{{AFX_MSG_MAP(CMainFrame)</p>
<p>　　 ON_WM_CREATE()</p>
<p>　　 ON_WM_TIMER()</p>
<p>　　 ON_MESSAGE(WM_MY_MESSAGE, OnMyMessage)</p>
<p>　　 //}}AFX_MSG_MAPEND_MESSAGE_MAP()</p>
<p>　　 这样，一个用户自定义消息就可以使用了，如果用户需要一个整个系统唯一的消息，可以调用 SDK 函数 RegisterWindowMessage 并使用 ON_REGISTER_MESSAGE 宏指令取代 ON_MESSAGE 宏指令，其余步骤同上。</p>
<p>　　 VC++ 为程序员提供了一套功能强大、方便快捷的编程工具，它可以帮你方便的生成窗口、菜单等用户界面，可惜就是做出来的东西都一样，没有一点个性。下面，就介绍一些方法，让我们可以按照自己的设计定制出更加符合自己程序风格的窗口。</p>
<h3  class="related_post_title">你可能也对下列文章感兴趣</h3><ul class="related_post"><li>2004年12月15日 -- <a href="http://www.xiaozhou.net/vcdevelopment/when-the-news-of-cancellation-of-interception-system-2004-12-15.htm" title="截获系统注销时候的消息">截获系统注销时候的消息</a> (0)</li><li>2004年09月7日 -- <a href="http://www.xiaozhou.net/myworks/lan-message-bomber-2004-09-07.htm" title="局域网消息轰炸机">局域网消息轰炸机</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/vcdevelopment/vc-in-the-custom-message-2004-10-29.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>局域网消息轰炸机</title>
		<link>http://www.xiaozhou.net/myworks/lan-message-bomber-2004-09-07.htm</link>
		<comments>http://www.xiaozhou.net/myworks/lan-message-bomber-2004-09-07.htm#comments</comments>
		<pubDate>Tue, 07 Sep 2004 07:23:07 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[我的拙作]]></category>
		<category><![CDATA[Bomb]]></category>
		<category><![CDATA[Intranet]]></category>
		<category><![CDATA[Message]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=16</guid>
		<description><![CDATA[这是我最初开始学习VC时候的一个比较拙劣的作品。呵呵。 其主要功能就是利用NT系统自带的信使服务功能，对目标机器进行消息轰炸。 受害者的机器可能一直弹出收到消息的画面。 全部代码下载 点击下载此文件 你可能也对下列文章感兴趣2009年11月10日 -- 同时接入多个网络的路由设置 (0)2004年12月15日 -- 截获系统注销时候的消息 (0)2004年10月29日 -- VC中的自定义消息 (0)]]></description>
			<content:encoded><![CDATA[<p>这是我最初开始学习VC时候的一个比较拙劣的作品。呵呵。<br />
其主要功能就是利用NT系统自带的信使服务功能，对目标机器进行消息轰炸。<br />
受害者的机器可能一直弹出收到消息的画面。</p>
<p>全部代码下载</p>
<p><a href="/attachments/month_0409/a8ze_messangerbomb.rar" target="_blank">点击下载此文件</a></p>
<h3  class="related_post_title">你可能也对下列文章感兴趣</h3><ul class="related_post"><li>2009年11月10日 -- <a href="http://www.xiaozhou.net/ittech/software/route_setting_of_multi_network_interface-2009-11-10.htm" title="同时接入多个网络的路由设置">同时接入多个网络的路由设置</a> (0)</li><li>2004年12月15日 -- <a href="http://www.xiaozhou.net/vcdevelopment/when-the-news-of-cancellation-of-interception-system-2004-12-15.htm" title="截获系统注销时候的消息">截获系统注销时候的消息</a> (0)</li><li>2004年10月29日 -- <a href="http://www.xiaozhou.net/vcdevelopment/vc-in-the-custom-message-2004-10-29.htm" title="VC中的自定义消息">VC中的自定义消息</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/myworks/lan-message-bomber-2004-09-07.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
