-
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
-
a procedure to help illustrate a tool kit in the DOS
一个帮助程序可以说明 一个工具包在DOS下的 有很多式具-a procedure to help illustrate a tool kit in the DOS- with a lot of
- 2022-05-19 13:25:00下载
- 积分:1
-
c专家编程
《C专家编程》展示了最优秀的C程序员所使用的编码技巧,并专门开辟了一章对C++的基础知识进行了介绍。书中C的历史、语言特性、声明、数组、指针、链接、运行时、内存以及如何进一步学习C++等问题进行了细致的讲解和深入的分析。全书撷取几十个实例进行讲解,对C程序员具有非常高的实用价值。本书可以帮助有一定经验的C程序员成为C编程方面的专家,对于具备相当的C语言基础的程序员,本书可以帮助他们站在C的高度了解和学习C++。
- 2023-05-04 14:25:05下载
- 积分:1
-
消除图片移动的效果,非常不错的原代码,适合对图像处理的参考代码....
消除图片移动的效果,非常不错的原代码,适合对图像处理的参考代码.-To eliminate the effect of moving picture, very good original code, suitable for image processing reference code.
- 2022-03-16 03:03:01下载
- 积分:1
-
Java实现deadlock detection algorithm
Java实现deadlock detection algorithm-Java deadlock detection algorithm
- 2022-07-07 18:54:12下载
- 积分:1
-
Windows登录Gina的Dll库实现
Windows登录Gina的Dll库实现-Windows log Gina implementation of the Dll Library
- 2022-07-16 05:45:10下载
- 积分:1
-
A GUI that Save or Restore Registry Keys.
A GUI that Save or Restore Registry Keys.-Save or Restore Registry Keys.
- 2023-03-30 13:15:03下载
- 积分:1
-
用DELPHI编写软件注册的有福了,非常不错的一个原代码。
用DELPHI编写软件注册的有福了,非常不错的一个原代码。-DELPHI software used to prepare the registration blessed, very good a the original code.
- 2022-04-09 20:23:51下载
- 积分:1
-
This is a use of DOC prepared by the operating system GUI System
这是一个利用DOC操作系统编写的GUI系统-This is a use of DOC prepared by the operating system GUI System
- 2023-05-27 15:30:03下载
- 积分:1
-
NETBIOS and IPX network interfaces need to address. The article detailed the ste...
IPX和NETBIOS接口需要网络地址。该文通过详细的步骤演示了如何通过VB获取网卡地址。-NETBIOS and IPX network interfaces need to address. The article detailed the steps demonstrated how VB access card addresses.
- 2022-03-19 10:54:58下载
- 积分:1