-
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
-
实时提供CPU的使用情况,并附有曲线图和柱状图。在托盘图标中动态显示使用率。...
实时提供CPU的使用情况,并附有曲线图和柱状图。在托盘图标中动态显示使用率。-provide real-time CPU usage, together with curves and histograms. The tray icon dynamic display usage.
- 2023-05-05 20:55:03下载
- 积分:1
-
window system programming,get memory address,information
WIndow 系统编程,获取内存地址、信息-window system programming,get memory address,information
- 2022-02-21 00:17:02下载
- 积分:1
-
多路数据采集系统
多路数据采集系统-Multi-channel Data Acquisition System
- 2022-05-20 08:10:09下载
- 积分:1
-
Code to achieve a Windows interface services, code to achieve auto
代码实现了有界面的Windows服务,代码有实现自动安装服务、卸载服务的功能实现。-Code to achieve a Windows interface services, code to achieve auto-installation services, unloading services functions.
- 2022-04-07 18:43:30下载
- 积分:1
-
用vc编写的串口动态链接库,很实用的一个程序
用vc编写的串口动态链接库,很实用的一个程序-Vc prepared using serial dynamic link library, it is a practical procedure
- 2022-01-25 21:47:24下载
- 积分:1
-
测试MOUSE的程序
测试MOUSE的程序-testing procedures MOUSE
- 2022-03-21 20:46:05下载
- 积分:1
-
VC++超简单员工考勤系统,ACCESS数据库,可以分超级管理员和一般员工用户登录,超级管理员可以维护员工信息和进行系统设置,一般员工只能考勤签到,不能进行别的...
VC++超简单员工考勤系统,ACCESS数据库,可以分超级管理员和一般员工用户登录,超级管理员可以维护员工信息和进行系统设置,一般员工只能考勤签到,不能进行别的操作,因此说这个考勤系统非常简单,功能很单一.-VC++ super-simple employee time and attendance system, ACCESS database, can be super-administrator and the general staff of the user log, the super administrator can carry out the maintenance of staff information and system settings, the general staff attendance attendance only, not to carry out other operations, so that The attendance system is very simple, is a single function.
- 2022-06-01 11:09:10下载
- 积分:1
-
一个窗口状态查看工具,非常简单,呵呵,仅供参考作用 :) 希望对您有用...
一个窗口状态查看工具,非常简单,呵呵,仅供参考作用 :) 希望对您有用-State of a window view tool, very simple, huh, huh, for reference only role:) hope that useful to you
- 2022-09-10 22:25:03下载
- 积分:1
-
进程调度模拟程序是从网上下载供参考…
调度器进程模拟程序是从网上下载的,供参考
- 2022-03-19 01:22:30下载
- 积分:1