随笔分类 -  Delphi-System

摘要:要像系统注册一个全局热键,需要用到RegisterHotKey,函数用法如下(MSDN):BOOL RegisterHotKey( HWND hWnd, int id, UINT fsModifiers, UINT vk); 函数功能:该函数定义一个系统范围的热键。 函数原型:BOOL Regist 阅读全文
posted @ 2018-10-11 20:15 findumars 阅读(1533) 评论(1) 推荐(2) 编辑
摘要:钩子(Hook),是Windows消息处理机制的一个平台,应用程序可以在上面设置子程以监视指定窗口的某种消息,而且所监视的窗口可以是其他进程所创建的。当消息到达后,在目标窗口处理函数之前处理它。钩子机制允许应用程序截获处理window消息或特定事件。钩子实际上是一个处理消息的程序段,通过系统调用,把 阅读全文
posted @ 2018-04-07 18:32 findumars 阅读(816) 评论(0) 推荐(0) 编辑
摘要:说到HOOK,我看了很多的资料和教程,无奈就是学不会HOOK,不懂是我的理解能力差,还是你们说的 不够明白,直到我看了以下这篇文章,终于学会了HOOK: http://blog.sina.com.cn/s/blog_628821950100xmuc.html //感谢文章作者的分享,让我学会了HOO 阅读全文
posted @ 2018-04-07 18:24 findumars 阅读(5389) 评论(0) 推荐(0) 编辑
摘要:http://www.delphi6.com/thread-3.htm 阅读全文
posted @ 2017-07-19 20:11 findumars 阅读(797) 评论(0) 推荐(0) 编辑
摘要:近日来,在网上发现关于屏幕取词技术的捷径,搜索很长时间,发现实现方式以VB出现的居多,但是通过Delphi来实现的却好象没有看到,自己参考着VB的相关代码琢磨了一下通过delphi来实现的方式。 其实也差不多,唯一不同的只有一个地方就是取词对象GrabProxy的AdviseGrab这个方法,该方法 阅读全文
posted @ 2017-07-04 15:55 findumars 阅读(522) 评论(0) 推荐(0) 编辑
摘要:API Hook基本原理和实现 2009-03-14 20:09 windows系统下的编程,消息message的传递是贯穿其始终的。这个消息我们可以简单理解为一个有特定意义的整数,正如我们看过的老故事片中的“ 长江长江,我是黄河”一个含义。windows中定义的消息给初学者的印象似乎是“不计其数” 阅读全文
posted @ 2017-07-04 15:36 findumars 阅读(2195) 评论(0) 推荐(1) 编辑
摘要:ACPI规范定义了一台兼容ACPI的计算机系统可以有以下七个状态(所谓的全局状态): 此外,当操作系统在不支持ACPI的情况下运行,这种状态被定义为Legacy。在这个状态下,硬件和电源不是通过ACPI来管理的,实际上已经禁用了ACPI。 (参考资料:ACPI规范3.0b版的链接在下面 Extern 阅读全文
posted @ 2017-04-14 22:40 findumars 阅读(10794) 评论(0) 推荐(1) 编辑
摘要:TShutDownStatus = (sdShutDown,sdReboot,sdLogOff,sdPowerOff); procedure ShutDown(sdStatus : TShutDownStatus); var NewState: TTokenPrivileges; lpLuid: I 阅读全文
posted @ 2017-04-14 22:38 findumars 阅读(1293) 评论(0) 推荐(0) 编辑
摘要:The most complex system information probe in Delphi world, it consists of many standalone components covering many system information problematic, and 阅读全文
posted @ 2017-02-17 07:10 findumars 阅读(813) 评论(2) 推荐(0) 编辑
摘要:浅议Delphi中的Windows API调用http://tech.163.com/school • 2005-08-15 10:57:41 • 来源: 天极网为了能在Windows下快速开发应用程序,Delphi对Windows的控件都进行了很好的封装,这样,我们就可以直接使用Delphi的控件 阅读全文
posted @ 2017-02-03 07:10 findumars 阅读(335) 评论(0) 推荐(0) 编辑
摘要:此版本较0.01预览版已经有了脱胎换骨的变化,主要表现在以下几个方面: 1.对程序的结构进行了调整,将原来的ntutils.dcu分成fcall.dcu、halfcall.dcu和macros.dcu三个单元,分别对应ntoskrnl.exe、hal.dll以及DDK中的宏定义,虽然麻烦了点儿,不过 阅读全文
posted @ 2017-01-20 23:42 findumars 阅读(638) 评论(0) 推荐(0) 编辑
摘要:unit uHook;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Controls, Forms, Dialogs, StdCtrls;type tagKBDLLHOOKSTRUCT = packed record vk 阅读全文
posted @ 2016-11-22 07:32 findumars 阅读(879) 评论(0) 推荐(0) 编辑
摘要:1.设置Windows最低版本要求 [Setup]: MinVersion 格式: a.bb,c.dd,这里 a.bb 是 Windows 版本,c.dd 是 Windows NT 版本。 默认值: 4.0,4.0 描述:这个指令让你指定你的软件运行必须的 Windows 或 Windows NT 阅读全文
posted @ 2016-10-27 18:05 findumars 阅读(1790) 评论(0) 推荐(0) 编辑
摘要:DELPHI代码 [html] view plain copy unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrl 阅读全文
posted @ 2016-08-19 23:35 findumars 阅读(818) 评论(0) 推荐(0) 编辑
摘要:http://www.michael-puff.de/Programmierung/Delphi/Code-Snippets/GetUserNameEx.shtml 阅读全文
posted @ 2016-08-09 23:37 findumars 阅读(868) 评论(0) 推荐(0) 编辑
摘要:uses Winapi.WinSpool; procedure TForm1.Button1Click(Sender: TObject);varpi2: PRINTER_INFO_2;hPrinter: THandle;Jobs: array [0 .. 1000] of TJobInfo2;Byt 阅读全文
posted @ 2016-06-29 17:14 findumars 阅读(1981) 评论(0) 推荐(0) 编辑
摘要:ddd 阅读全文
posted @ 2016-06-02 15:21 findumars 阅读(345) 评论(0) 推荐(0) 编辑
摘要:Writing a Windows Shell Extension This is a technical article covering the content of my last week skill sprint about Writing Windows Shell Extensions 阅读全文
posted @ 2016-04-21 18:02 findumars 阅读(1037) 评论(0) 推荐(0) 编辑
摘要:[delphi] view plain copy unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type 阅读全文
posted @ 2016-03-30 20:33 findumars 阅读(1220) 评论(0) 推荐(0) 编辑
摘要:你创建一个钩子时,WINDOWS系统会创建一个数据结构,该结构包含了您创建的钩子的信息,安装钩子则是把该结构体插入到系统钩子列表中去,注意:新插入的放置到旧的前面。当指定的钩子事件被触发后,局部钩子只需要调用进程中的钩子函数来预处理事件,全局钩子则需要把处理插入到其他地址空间,要做到这一点,就需要有 阅读全文
posted @ 2016-03-29 19:41 findumars 阅读(1485) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示