-
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
-
Fffff were dynamic, such as increased control 1.0.rar
如fffff名动态增加控件1.0.rar-Fffff were dynamic, such as increased control 1.0.rar
- 2022-02-14 17:56:09下载
- 积分:1
-
--8086
--8086-8088宏汇编语言程序设计教程--- 8086-8088 macro assembler language programming guide
- 2022-02-12 22:02:50下载
- 积分:1
-
windows on the task scheduling and more code to achieve a variety of task schedu...
基于windows的多任务调度代码 实现多种任务的调度-windows on the task scheduling and more code to achieve a variety of task scheduling
- 2022-02-02 13:43:33下载
- 积分:1
-
线程是邪恶的,这个文档解释了为什么你应该避免使用线程。
Threads are evil, this document explain why you should avoid using threads.
- 2022-12-26 00:45:03下载
- 积分:1
-
in windows environment directly read bios information, and preserve. Transfers f...
在windows环境下直接读取bios信息,并保存。转自programfan.com-in windows environment directly read bios information, and preserve. Transfers from programfan.com
- 2023-06-02 02:15:03下载
- 积分:1
-
very good code!
very good code !
-very good code!
- 2022-03-21 14:04:09下载
- 积分:1
-
VC++编程,有源代码,这是一个简单操作系统注册表的类
VC++编程,有源代码,这是一个简单操作系统注册表的类-VC++ Programming, source code, this is a simple type of operating system registry
- 2022-06-21 07:15:19下载
- 积分:1
-
一个通用定时器类,可用于无窗口类中。本例程使用一个C++类,利用定时器变换指示灯。程序中用到:自定义的定时器类、C++多类继承、使用纯虚函数的中间类、指示灯变换...
一个通用定时器类,可用于无窗口类中。本例程使用一个C++类,利用定时器变换指示灯。程序中用到:自定义的定时器类、C++多类继承、使用纯虚函数的中间类、指示灯变换设置。-A general-purpose timer class can be used for non-window class. The routine use of a C++ classes, the use of timer indicator transform. Programs used: a custom timer class, C++ multi-class inheritance, the use of pure virtual functions of the middle class, set the lights change.
- 2022-05-07 21:55:07下载
- 积分:1
-
一个取得ACCess数据库密码的程序,希望对大家有所帮助!
一个取得ACCess数据库密码的程序,希望对大家有所帮助!-made ACCess a database password procedures, we hope to help!
- 2022-05-16 21:43:09下载
- 积分:1