登录
首页 » Windows核心 » Windows 中创建空的备用列表

Windows 中创建空的备用列表

于 2022-05-07 发布 文件大小:33.96 kB
0 230
下载积分: 2 下载次数: 1

代码说明:

翻译: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 的优先代码相结合,我们可以设置内核优先权限:

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 众所周知,在微软的操作系统下编写应用程序,最主要的还是通过windows所提供的api函数来实现各种操作的,这些函数通常是可以直接使用的,只要包含windows...
    众所周知,在微软的操作系统下编写应用程序,最主要的还是通过windows所提供的api函数来实现各种操作的,这些函数通常是可以直接使用的,只要包含windows.h这个头文件。   里面主要介绍的是几个常用的api函数,通过它我们可以获取用户磁盘的相关信息。-known in the Microsoft operating system, to prepare applications, or through the main windows api provided by the various functions to achieve the operation of these functions can usually be directly used, as long as it contains the header files windows.h. They introduced are several common api function, through which we can access disk users to the relevant information.
    2022-11-23 10:55:03下载
    积分:1
  • SIFT algorithm literature (PDF) and code can be a thorough understanding of the...
    SIFT演算法的文献(PDF)与程式码,可彻底了解SIFT演算法的精随。-SIFT algorithm literature (PDF) and code can be a thorough understanding of the essence with the SIFT algorithm.
    2023-01-04 00:50:04下载
    积分:1
  • themselves to add a new category in MFC
    自己添加新的类在MFC中-themselves to add a new category in MFC
    2023-06-18 20:45:03下载
    积分:1
  • buffer under VC operation, such as writing a thread, a thread to read and storag...
    VC下进行缓冲区操作, 如一个线程写,一个线程读取并存储 当然使用队列 这是为具体工程写的队列的例子工程-buffer under VC operation, such as writing a thread, a thread to read and storage of course this is the use of Queue works written for specific examples of projects Q
    2022-07-06 21:33:23下载
    积分:1
  • Windows研究内
    Windows Research Kernel download Here
    2022-02-05 23:03:42下载
    积分:1
  • an adjustment resolution, chromatic number, the refresh rate dll, and demo
    一个调节分辨率,色数,刷新率的dll,和demo-an adjustment resolution, chromatic number, the refresh rate dll, and demo
    2023-05-15 19:50:03下载
    积分:1
  • 5版
    VERSION 5.00 Begin VB.Form laba AutoRedraw = -1 True BackColor = &H00FFFFFF& BorderStyle = 1 Fixed Single ClientHeight = 3540 ClientLeft = 2340 ClientTop = 1815 ClientWidth = 4935 ControlBox = 0 False Icon = "FORM2.frx":0000 LinkTopic = "Form1" MaxButton = 0 False MinButton = 0 False Picture = "FORM2.frx":08CA ScaleHeight = 3540 ScaleWidth = 4935 ShowInTaskbar = 0 False StartUpPosition = 2 CenterScreen Begin VB.Timer Endlife Enabled = 0 False Interval = 1 Left = 3240 Top = 3360 -VERSION 5.00 Begin VB.Form laba AutoRedraw =-1 True BackColor = &H00FFFFFF& BorderStyle = 1 Fixed Single ClientHeight = 3540 ClientLeft = 2340 ClientTop = 1815 ClientWidth = 4935 ControlBox = 0 False Icon = "FORM2.frx":0000 LinkTopic = "Form1" MaxButton = 0 False MinButton = 0 False Picture = "FORM2.frx":08CA ScaleHeight = 3540 ScaleWidth = 4935 ShowInTaskbar = 0 False StartUpPosition =
    2022-12-06 12:20:03下载
    积分:1
  • 介质
    中型企业OA系统源代码,可以给200人左右企业使用,代码25M左右,ASP加ACCESS结构。因为SQL版本正在商用中,不过此版本一样可以商用。-Medium-sized enterprises OA system source code, can give about 200 enterprises, about 25M code, ASP increases ACCESS structure. Because the SQL version is commercial, although this version can be commercial.
    2022-02-02 11:24:26下载
    积分:1
  • 利用消息来实现内部进程通信,内含发送和接收两个程序
    利用消息来实现内部进程通信,内含发送和接收两个程序- Realizes the internal advancement correspondence using the news, the content transmits and receives two procedures
    2022-04-02 07:01:19下载
    积分:1
  • 获取硬盘分区序列号
    获取硬盘分区序列号-Hard disk partition to obtain the serial number
    2022-08-18 03:35:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载