<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_猪悟能'S博客</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/66683/rss</id><updated>2010-11-17T14:43:37Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/66683/rss"/><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669255.html</id><title type="text">KeyboardProc</title><summary type="text">键盘钩子处理函数：首先键盘钩子处理函数的函数名是可以自定义的 ，例如：MyKeyboardProc()函数原型：LRESULT CALLBACK KeyboardProc( int code,WPARAM wParam,LPARAM lParam); 参数：code：根据这个数值决定怎样处理消息如果 code 小于0，则 必须让KeyboardProc()函数返...</summary><published>2010-02-18T14:25:00Z</published><updated>2010-02-18T14:25:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669255.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669255.html"/><content type="text">键盘钩子处理函数：首先键盘钩子处理函数的函数名是可以自定义的 ，例如：MyKeyboardProc()函数原型：LRESULT CALLBACK KeyboardProc( int code,WPARAM wParam,LPARAM lParam); 参数：code：根据这个数值决定怎样处理消息如果 code 小于0，则 必须让KeyboardProc()函数返...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669247.html</id><title type="text">delphi编程里的bool跟boolean类型有什么区别</title><summary type="text">bool是LongBool类型。Delphi中定义了四种布尔类型：Boolean，ByteBool，WordBool和LongBool。后面三种布尔类型是为了与其他语言兼容而引入的，一般情况下建议使用Boolean类型。这四种类型的布尔值占用内存的数量如下：Boolean 1 ByteByteBool 1 ByteWordBool 2 Bytes（1 Word）LongBool 4 Bytes（2...</summary><published>2010-02-18T13:58:00Z</published><updated>2010-02-18T13:58:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669247.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669247.html"/><content type="text">bool是LongBool类型。Delphi中定义了四种布尔类型：Boolean，ByteBool，WordBool和LongBool。后面三种布尔类型是为了与其他语言兼容而引入的，一般情况下建议使用Boolean类型。这四种类型的布尔值占用内存的数量如下：Boolean 1 ByteByteBool 1 ByteWordBool 2 Bytes（1 Word）LongBool 4 Bytes（2...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669237.html</id><title type="text">SetWindowsHookEx</title><summary type="text">HOOK钩子详细介绍 基本概念 钩子(Hook)，是Windows消息处理机制的一个平台,应用程序可以在上面设置子程以监视指定窗口的某种消息，而且所监视的窗口可以是其他进程所创建的。当消息到达后，在目标窗口处理函数之前处理它。钩子机制允许应用程序截获处理window消息或特定事件。 钩子实际上是一个处理消息的程序段，通过系统调用，把它挂入系统。每当特定的消息发出，在没有到达目的窗口前，...</summary><published>2010-02-18T12:54:00Z</published><updated>2010-02-18T12:54:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669237.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669237.html"/><content type="text">HOOK钩子详细介绍 基本概念 钩子(Hook)，是Windows消息处理机制的一个平台,应用程序可以在上面设置子程以监视指定窗口的某种消息，而且所监视的窗口可以是其他进程所创建的。当消息到达后，在目标窗口处理函数之前处理它。钩子机制允许应用程序截获处理window消息或特定事件。 钩子实际上是一个处理消息的程序段，通过系统调用，把它挂入系统。每当特定的消息发出，在没有到达目的窗口前，...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669193.html</id><title type="text">fillchar</title><summary type="text">内存块赋值函数。定义：Procedure FillChar ( Var X; Count : Longint; Value : Char or Byte);意为：对一个Char类型的数组X进行Count次赋值，当Value为Char类型时，直接赋值；若Value为Byte类型时，将Value作为AscII赋值给每个单元。被引申为：对一个内存块，每8个二进制位赋值Value，赋值Coun...</summary><published>2010-02-18T08:14:00Z</published><updated>2010-02-18T08:14:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669193.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669193.html"/><content type="text">内存块赋值函数。定义：Procedure FillChar ( Var X; Count : Longint; Value : Char or Byte);意为：对一个Char类型的数组X进行Count次赋值，当Value为Char类型时，直接赋值；若Value为Byte类型时，将Value作为AscII赋值给每个单元。被引申为：对一个内存块，每8个二进制位赋值Value，赋值Coun...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669189.html</id><title type="text">CopyMemory</title><summary type="text">CopyMemory()函数功能描述:将一块内存的数据从一个位置复制到另一个位置函数原型 VOID CopyMemory(PVOID Destination, CONST VOID *Source, DWORD Length );参数Destination 要复制内存块的目的地址。 Source 要复制内存块的源地址。 Length 指定要复...</summary><published>2010-02-18T08:06:00Z</published><updated>2010-02-18T08:06:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669189.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669189.html"/><content type="text">CopyMemory()函数功能描述:将一块内存的数据从一个位置复制到另一个位置函数原型 VOID CopyMemory(PVOID Destination, CONST VOID *Source, DWORD Length );参数Destination 要复制内存块的目的地址。 Source 要复制内存块的源地址。 Length 指定要复...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669190.html</id><title type="text">findwindow</title><summary type="text">FindWindow，Win32 API函数。FindWindow函数返回与指定字符串相匹配的窗口类名或窗口名的最顶层窗口的窗口句柄。这个函数不会查找子窗口。函数原型：HWND FindWindow(LPCSTR lpClassName,LPCSTR lpWindowName );参数表：lpClassName指向一个以null结尾的、用来指定类名的字符串或...</summary><published>2010-02-18T08:06:00Z</published><updated>2010-02-18T08:06:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669190.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669190.html"/><content type="text">FindWindow，Win32 API函数。FindWindow函数返回与指定字符串相匹配的窗口类名或窗口名的最顶层窗口的窗口句柄。这个函数不会查找子窗口。函数原型：HWND FindWindow(LPCSTR lpClassName,LPCSTR lpWindowName );参数表：lpClassName指向一个以null结尾的、用来指定类名的字符串或...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669188.html</id><title type="text">OpenFileMapping</title><summary type="text">OpenFileMapping VB声明 Declare Function OpenFileMapping Lib "kernel32" Alias "OpenFileMappingA" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal lpName As String) As Long 说明 打...</summary><published>2010-02-18T08:04:00Z</published><updated>2010-02-18T08:04:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669188.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669188.html"/><content type="text">OpenFileMapping VB声明 Declare Function OpenFileMapping Lib "kernel32" Alias "OpenFileMappingA" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal lpName As String) As Long 说明 打...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669180.html</id><title type="text">CloseHandle</title><summary type="text">CloseHandle函数BOOL CloseHandle(HANDLE hObject);参数 hObject ：代表一个已打开对象handle。返回值TRUE：执行成功；FALSE：执行失败，可以调用GetLastError()获知失败原因。函数说明：关闭一个内核对象。其中包括文件、文件映射、进程、线程、安全和同步对象等。在CreateThread成功之...</summary><published>2010-02-18T07:46:00Z</published><updated>2010-02-18T07:46:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669180.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669180.html"/><content type="text">CloseHandle函数BOOL CloseHandle(HANDLE hObject);参数 hObject ：代表一个已打开对象handle。返回值TRUE：执行成功；FALSE：执行失败，可以调用GetLastError()获知失败原因。函数说明：关闭一个内核对象。其中包括文件、文件映射、进程、线程、安全和同步对象等。在CreateThread成功之...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669176.html</id><title type="text">CreateMutex</title><summary type="text">VB声明Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As SECURITY_ATTRIBUTES, ByVal bInitialOwner As Long, ByVal lpName As String) As Long VC声明HANDLE CreateMut...</summary><published>2010-02-18T07:16:00Z</published><updated>2010-02-18T07:16:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669176.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669176.html"/><content type="text">VB声明Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As SECURITY_ATTRIBUTES, ByVal bInitialOwner As Long, ByVal lpName As String) As Long VC声明HANDLE CreateMut...</content></entry><entry><id>http://www.cnblogs.com/hackpig/archive/2010/02/18/1669173.html</id><title type="text">SendMessage</title><summary type="text">函数功能：该函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序，直到窗口程序处理完消息再返回。而函数PostMessage不同，将一个消息寄送到一个线程的消息队列后立即返回。函数原型：LRESULT SendMessage（HWND hWnd，UINT Msg，WPARAM wParam，LPARAM IParam）；参数：hWnd：其窗口程序将接收消息的窗口的句柄。...</summary><published>2010-02-18T07:02:00Z</published><updated>2010-02-18T07:02:00Z</updated><author><name>猪悟能</name><uri>http://www.cnblogs.com/hackpig/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669173.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hackpig/archive/2010/02/18/1669173.html"/><content type="text">函数功能：该函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序，直到窗口程序处理完消息再返回。而函数PostMessage不同，将一个消息寄送到一个线程的消息队列后立即返回。函数原型：LRESULT SendMessage（HWND hWnd，UINT Msg，WPARAM wParam，LPARAM IParam）；参数：hWnd：其窗口程序将接收消息的窗口的句柄。...</content></entry></feed>
