自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

一路采撷

追求是一种过程

  • 博客(33)
  • 资源 (3)
  • 收藏
  • 关注

原创 TCP连接中的异常断开情况处理

1.      TCP连接中可能出现的异常断开情况假设存在这样一种情况:在两个不同的主机Machine1、Machine2系统上分别运行两个应用程序Application1、Application2,在Application1与Application2的进程中存在一个TCP链接TCPLink。它们的实际传输取决于物理链路的沟通PhysiLink。图一:TCP通信情况模拟图1.1程序/进

2007-06-22 18:45:00 15322 3

原创 钩子初接触(三十二)

由于工作的关系,不得不停停译译,经过了漫长的一个月,终于把msdn里面和Hook相关的主要部分翻译完成了。好像这是目前能找到的和Hook相关的最齐全的中文资料了。这是唯一让我自豪的地方。让我遗憾的是,好多内容都没有尝试过,甚至有的地方还没有理解,只是做了字面翻译。路漫漫其修远兮,吾将上下而求索。Heliios 2007-06-02 

2007-06-21 18:37:00 1852 3

原创 钩子初接触(三十一)

结构9:MSLLHOOKSTRUCT Structure The MSLLHOOKSTRUCT structure contains information about a low-level keyboard input event. (msdn错误)该MSLLHOOKSTRUCT结构包含有低层键盘输入事件的信息。Syntax语法typedef struct {    POI

2007-06-21 18:36:00 1682

原创 钩子初接触(三十)

结构8 :MOUSEHOOKSTRUCT StructureThe MOUSEHOOKSTRUCT structure contains information about a mouse event passed to a WH_MOUSE hook procedure, MouseProc. MOUSEHOOKSTRUCT结构包含有传递给WH_MOUSE钩子子程MouseProc的,关

2007-06-21 18:35:00 1778

原创 钩子初接触(二十九)

结构7:KBDLLHOOKSTRUCT StructureThe KBDLLHOOKSTRUCT structure contains information about a low-level keyboard input event. 该结构包含有低层键盘输入事件的信息。Syntax语法typedef struct {    DWORD vkCode;    DWORD

2007-06-21 18:33:00 1307

原创 钩子初接触(二十八)

结构4:CWPSTRUCT StructureThe CWPSTRUCT structure defines the message parameters passed to a WH_CALLWNDPROC hook procedure, CallWndProc. CWPSTRUCT 结构定义了传递给WH_CALLWNDPROC钩子子程CallWndProc的消息参数。Syntax

2007-06-21 18:32:00 1460

原创 钩子初接触(二十六)

通知2:WM_QUEUESYNC NotificationThe WM_QUEUESYNC message is sent by a computer-based training (CBT) application to separate user-input messages from other messages sent through the WH_JOURNALPLAYBACK H

2007-06-21 18:31:00 1047

原创 钩子初接触(二十七)

下面是应用Hook时会用到的各种结构。结构1:CBT_CREATEWND StructureThe CBT_CREATEWND structure contains information passed to a WH_CBT hook procedure, CBTProc, before a window is created. 该结构包含有:在一个窗口被创建之前传递给WH_CBT钩

2007-06-21 18:31:00 1376

原创 钩子初接触(二十五)

下面是各种Notification即通知。通知1:WM_CANCELJOURNAL NotificationThe WM_CANCELJOURNAL message is posted to an application when a user cancels the applications journaling activities. The message is posted wi

2007-06-21 18:30:00 1032

原创 钩子初接触(二十三)

方法18 :SysMsgProc FunctionThe SysMsgProc hook procedure is a library-defined callback function used with the SetWindowsHookEx function. The system calls this function after an input event occurs in a

2007-06-21 18:29:00 1206

原创 钩子初接触(二十四)

方法19 :UnhookWindowsHookEx FunctionThe UnhookWindowsHookEx function removes a hook procedure installed in a hook chain by the SetWindowsHookEx function. UnhookWindowsHookEx方法移除由SetWindowsHookEx方法安装

2007-06-21 18:29:00 1204

原创 钩子初接触(二十二)

方法17 :ShellProc Function The ShellProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The function receives notifications of S

2007-06-21 18:28:00 1691

原创 钩子初接触(二十)

方法15 :MouseProc FunctionThe MouseProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function whenever a

2007-06-21 18:27:00 1045

原创 钩子初接触(二十一)

方法16 :SetWindowsHookEx FunctionThe SetWindowsHookEx function installs an application-defined hook procedure into a hook chain. You would install a hook procedure to monitor the system for certain ty

2007-06-21 18:27:00 1600

原创 钩子初接触(十九)

方法14 :MessageProc FunctionThe MessageProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function after

2007-06-21 18:26:00 1245

原创 钩子初接触(十八)

方法13 : LowLevelMouseProc FunctionThe LowLevelMouseProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system call this fun

2007-06-21 18:25:00 1080

原创 钩子初接触(十六)

方法11 : KeyboardProc FunctionThe KeyboardProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function whe

2007-06-21 18:00:00 1069

原创 钩子初接触(十七)

方法12 : LowLevelKeyboardProc FunctionThe LowLevelKeyboardProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls t

2007-06-21 18:00:00 1189

原创 钩子初接触(十五)

方法10 : JournalRecordProc FunctionThe JournalRecordProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The function records mes

2007-06-21 17:59:00 1139

原创 钩子初接触(十三)

方法8  : GetMsgProc FunctionThe GetMsgProc function is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function whenever the

2007-06-21 17:58:00 1043

原创 钩子初接触(十四)

方法9  :JournalPlaybackProc FunctionThe JournalPlaybackProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. Typically, an applica

2007-06-21 17:58:00 1600

原创 钩子初接触(十二)

方法7  :  ForegroundIdleProc FunctionThe ForegroundIdleProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this

2007-06-21 17:57:00 1037

原创 钩子初接触(十)

方法5  :  CBTProc FunctionThe CBTProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function before activ

2007-06-21 17:56:00 1384

原创 钩子初接触(十一)

方法6  :  DebugProc FunctionThe DebugProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function before c

2007-06-21 17:56:00 1482

原创 钩子初接触(九)

 方法3 :CallWndProc FunctionThe CallWndProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. CallWndProc钩子子程是与SetWindowsHookEx

2007-06-21 17:55:00 1776

原创 钩子初接触(八)

认识完各种钩子类型之后,接下来了解和钩子如影随形的钩子子程,即相应的回调函数。了解这些是可以使用钩子的一个开始。方法1:CallMsgFilter FunctionThe CallMsgFilter function passes the specified message and hook code to the hook procedures associated with the

2007-06-21 17:54:00 1701

原创 钩子初接触(七)

钩子类型介绍(续二)钩子类型13、14:WH_MSGFILTER  and  WH_SYSMSGFILTER HooksThe WH_MSGFILTER and WH_SYSMSGFILTER hooks enable you to monitor messages about to be processed by a menu, scroll bar, message box, or d

2007-06-21 17:53:00 2155

原创 钩子初接触(六)

钩子类型介绍(续一)钩子类型7:WH_JOURNALPLAYBACK HookThe WH_JOURNALPLAYBACK hook enables an application to insert messages into the system message queue. You can use this hook to play back a series of mouse and

2007-06-21 17:52:00 1626

原创 钩子初接触(五)

从现在开始,介绍全部钩子类型,一共有15种。由于本人现在使用C#,所以将原文中的Function都翻译为了“方法”,实际上翻译为“函数”可能更准确。原文中的”callback function”翻译为“回调函数”。Each type of hook enables an application to monitor a different aspect of the systems mess

2007-06-21 17:51:00 1894

原创 钩子初接触(四)

Hook Procedures (钩子子程)To take advantage of a particular type of hook, the developer provides a hook procedure and uses the SetWindowsHookEx function to install it into the chain associated with the

2007-06-21 17:50:00 1698

原创 钩子初接触(三)

 勿在浮沙筑高台。继续学习。今天主要学习官方的资料。但是查找到的都是E文,俺只是翻译了一下。全部查找自msdn。Hooks tend to slow down the system because they increase the amount of processing the system must perform for each message. You should insta

2007-06-21 14:20:00 1993

原创 钩子初接触(二)

比较专业的对钩子的技术性理解钩子(Hook),是Windows消息处理机制的一个平台,应用程序可以在上面设置子程以监视指定窗口的某种消息,而且所监视的窗口可以是其他进程所创 建的。当消息到达后,在目标窗口处理函数之前处理它。钩子机制允许应用程序截获处理window消息或特定事件。Windows系统是建立在事件驱动的机制上的,说穿了就是整个系统都是通过消息的传递来实现的。而钩子是Window

2007-06-21 14:19:00 2090 1

原创 钩子初接触(一)

   接触钩子说起来确是一件有趣的事情,原因有2个。一、对钩子一直就存在比较大的兴趣,很久就想了解一下这个传说中的神秘Hook。二、前些日子,一个同事在我这里上网,不知道上了什么网站,俺的宝贝电脑中了招,连gohst都解决不了,花了3天时间才彻底搞定。多么强烈的精神打击啊。这个原因促使我要写个钩子程序,在俺不在的时候,运行起来。万一有人来上网,嘿嘿,就可以拿这他的密码让他请客啦,哈哈。估计以后让他

2007-06-21 14:09:00 2298

Fedora11安装指南

Fedora11安装指南 中文 pdf格式 有图解

2009-08-23

一点linux资料,入门,涉及到各个方面,新手看看没坏处:)20字~~还没到~~~~~~

一点linux资料,入门,涉及到各个方面,新手看看没坏处:)20字~~还没到~~~~~~

2009-08-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除