演示工程下载:http://down.bccn.net/472.html
{总体流程:利用CreateToolhelp32Snapshot函数创建一个进程快照,然后利用Process32First函数和Process32Next函数遍历出所有进程ID等信息,保存到ListView控件中。当获取到进程ID后交给OpenProcess函数使用打开一个进程,从而获取一个进程句柄,当获取进程句柄后则交给VirtualAllocEx和WriteProcessMemory函数使用,从而进行虚拟内存分配和写入。然后则利用GetProcAddress函数和GetModuleHandle函数获取定的...
演示工程下载
unit My_KeyBD_Event;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); ...
演示工程下载
unit Mouse_Event_Demo;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Menus;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; PopupMenu1: TPopupMenu; N1: TMenuItem; ioriliao1:...
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls,TLHelp32,PSAPI, ComCtrls;type TForm1 = class(TForm) Panel1: TPanel; Panel2: TPanel; Button1: TButton; ListView1: TListView; procedure Button1Click(Se...