-
关于如何锁住键盘和鼠标
钩子实际上是一个处理消息的程序段,通过系统调用,把它挂入系统。每当特定的消息发出,在没有到达目的窗口前,钩子程序就先捕获该消息,亦即钩子函数先得到控制权。这时钩子函数即可以加工处理(改变)该消息,也可以不作处理而继续传递该消息,还可以强制结束消息的传递。对每种类型的钩子由系统来维护一个钩子链,最近安装的钩子放在链的开始,而最先安装的钩子放在最后,也就是后加入的先获得控制权。要实现Win32的系统钩子,必须调用SDK中的API函数SetWindowsHookEx来安装这个钩子函数,这个函数的原型是HHOOK SetWindowsHookEx(int idHook,HOOKPROC lpfn,HINSTANCE hMod,DWORD dwThreadId);,其中,第一个参数是钩子的类型;第二个参数是钩子函数的地址;第三个参数是包含钩子函数的模块句柄;第四个参数指定监视的线程。
- 2022-02-24 11:14:29下载
- 积分:1
-
测试硬盘、网络的速度
测试硬盘、网络的速度-Test your hard disk, network speed
- 2022-06-29 05:36:41下载
- 积分:1
-
查找进程,不错的源代码
查找进程,不错的源代码- Search advancement, good source code
- 2022-02-28 23:34:20下载
- 积分:1
-
Jsp to achieve with the online shopping features to provide a reference template
用jsp来实现网上购物的功能,提供一个参考模版-Jsp to achieve with the online shopping features to provide a reference template
- 2022-03-15 19:55:06下载
- 积分:1
-
编辑Delphi库(delphi32。DRO)工具(源,D4)
编辑Delphi Repository文件(delphi32.dro)的工具(source,d4)-editing Delphi Repository (delphi32.dro) tools (source, d4)
- 2022-06-29 02:46:21下载
- 积分:1
-
VS 2005 写的一个东西,可以控制鼠标的位置,同时显示出任意时刻鼠标的控制,大家可以参考下。...
VS 2005 写的一个东西,可以控制鼠标的位置,同时显示出任意时刻鼠标的控制,大家可以参考下。-VS 2005 writing a thing, can control the mouse position, while showing the control of the mouse at any time, we can refer to the next.
- 2022-03-18 06:51:48下载
- 积分:1
-
Windows 中创建空的备用列表
翻译:maninwest@Codeforge 作者:Member 10018957 @CodeProject如何在 Windows 中创建看空的备用列表。进程黑_客的制造者了解 Windows 内核的里里外外,他们也幸运地熟练掌握 Windows 内核的设计语言C++。而其他的人则努力通过 C# 执行相似的功能。其中一个功能就是释放来自 windows 备用内存的内存。这就是我们在此要做的。最难的部分是获取内核的优先权限。感谢Nick Lowe:http://processprivileges.codeplex.com/步骤1:设置内核优先权限Microsoft 设计了可以获取包含结构数组的结构的 API。没有适用于此的编组过程的捷径。要么假设数组是 length=1 要么要求数组大小在编译时预先确定。为此,我设计了一个类,它通过 System.IntPtr拥有微软在未管理的内存中需要的确切结构。当前,我不得不采用不安全的步骤,但是我确定,将来会有办法绕过。[return: MarshalAs(UnmanagedType.Bool)]
[SuppressUnmanagedCodeSecurity, DllImport("advapi32.dll", SetLastError = true)] internal static extern bool AdjustTokenPrivileges(AccessTokenHandle accessTokenHandle,
[MarshalAs(UnmanagedType.Bool)] bool disableAllPrivileges, IntPtr NewPriviledges, Int32 bufferLength, ref IntPtr PriorPriviledges, out Int32 returnLength); 将我的类和 Nick Lowe 的优先代码相结合,我们可以设置内核优先权限:
- 2022-05-07 13:17:48下载
- 积分:1
-
在纯DOS屏幕上面显示矢量字体,调用WINOWS矢量字库的。
在纯DOS屏幕上面显示矢量字体,调用WINOWS矢量字库的。-In pure DOS screen shown above vector font, vector font WINOWS call.
- 2022-05-20 02:43:24下载
- 积分:1
-
filedisk源码
FileDisk is a virtual disk driver for Windows that uses one or more files to emulate physical disks. A console application is included that let you dynamically mount and unmount files. An example of use for this driver is if you have made plans spending the weekend writing an RAID driver for NT but find you are short of disks. FileDisk can also use CD/DVD images.
Latest news: Allow to mount images without administrative privileges, works better on Windows Vista and Windows 7, support for 64-bit systems.
Screenshot of an example of use.
FileDisk will use sparse files as disk images if the underlying file system supports it. A sparse file is a file were suficiently large blocks of zeros isn"t allocated disk space. To see how much disk space a file actually uses right click on the file and choose properties. If you for example create a spar
- 2022-06-18 21:57:43下载
- 积分:1
-
在源和二进制形式的重新分配和使用
File Name : 25Reflections.zip
File Size : 21K
Design Computer : Celeron 2.4Ghz , 512MB Ram, Windows XP Pro
Date Released : 2005/02/27
Environment : Embedded Visual C++ 4.0-Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met
- 2022-04-24 20:49:41下载
- 积分:1