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

Windows 中创建空的备用列表

于 2022-05-07 发布 文件大小:33.96 kB
0 226
下载积分: 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 个回复

  • VC编写的DLL,可以获得硬盘的型号、序列号以及计算机 ID, 带Delphi的源程序,在Win2K下通过,但是没有在Win9X下试过, 感兴趣的朋友可以在Wi...
    VC编写的DLL,可以获得硬盘的型号、序列号以及计算机 ID, 带Delphi的源程序,在Win2K下通过,但是没有在Win9X下试过, 感兴趣的朋友可以在Win9X 下试一下,或者编写一个VB的范例。 函数以及定义: function ReadPhysicalDrive(driveID:integer;buffer:Pointer;bufLen:integer):integer; stdcall; external DiskID.dll name ReadPhysicalDriveInNT ; 获得WinNT下的硬盘型号以及序列号。参数driveID为硬盘的位置, IDE1上的主盘为0,类推到IDE2上的从盘的driveID为3。 function ReadPhysicalDrive9X (driveID:integer;buffer:Pointer;bufLen:integer):integer; stdcall; external DiskID.dll name ReadDrivePortsInWin9X ; 获得Win9X下的硬盘型号以及序列号。参数同上 function getHardDriveComputerID:int64; stdcall; external DiskID.dll name getHardDriveComputerID ; 获得计算机的ID -VC prepared DLL, get the hard drive model, serial number and computer ID, with Delphi s source code, adopted in Win2K, but not under Win9X tried interested can try under Win9X, or prepare a VB example. Function as well as the definition: function ReadPhysicalDrive (driveID: integer buffer: Pointer bufLen: integer): integer stdcall external DiskID.dll name ReadPhysicalDriveInNT obtained under Win
    2022-02-15 18:15:01下载
    积分:1
  • dll窗体业务
    dll窗体业务-12
    2022-07-08 01:01:47下载
    积分:1
  • 编写动态存储分配的一部分
    Memory Allocation in C-write part of a dynamic storage allocation package. The package provides three function calls: void initalloc(), to initialize the data structures involved char* alloc(int n), which returns a pointer to a block of n chars when called and void freef(char* p), which frees the block of n chars earlier given to the data structure so that it can be given out to another.
    2022-06-30 05:19:02下载
    积分:1
  • 一个如何作内存映射的程序,同过一个范例说明内存映射函数的使用...
    一个如何作内存映射的程序,同过一个范例说明内存映射函数的使用-A demo program about MMF
    2022-06-19 03:50:06下载
    积分:1
  • C#API大全 内置大量的在C#中申明的API函数接口,方便大家在C#中使用API函数...
    C#API大全 内置大量的在C#中申明的API函数接口,方便大家在C#中使用API函数
    2022-02-26 21:02:47下载
    积分:1
  • 类似vista任务栏的控件 自动隐藏在屏幕右边
    类似vista任务栏的控件 自动隐藏在屏幕右边-Similar vista taskbar automatically hide the controls right on the screen
    2022-08-04 00:35:52下载
    积分:1
  • GT400.DLL for GT
    GT400.DLL for GT-400 Series Motion Controllers by Googol Tehnology Ltd.
    2022-02-07 14:11:52下载
    积分:1
  • can be used to prohibit the use usb
    可以用来禁止usb使用-can be used to prohibit the use usb
    2022-03-22 08:14:22下载
    积分:1
  • 这4个部分系列将讨论的窗口访问控制模型,以及它是如何。
    This 4 part series will discuss the Windows access control model and how it is implemented in Windows NT and 2000. In this 2nd article we will start programming with security identifiers, access control lists and security descriptors. We will solve trivial problems using the SID, obtain information from an access token, enable a privilege, fill up an access control list, and finally we will check if we have access to a resource. The demo project provided is a Whoami clone written Windows 2000 style. The source code includes equivalent programs of the article s code written with the Low level APIs, the Windows 2000 APIs, and the Active Template Library.
    2022-04-24 18:59:16下载
    积分:1
  • 一个能记录并回放鼠标操作的MFC。代码简洁明了,应该是同类中的短少精悍者。
    一个能记录并回放鼠标操作的MFC。代码简洁明了,应该是同类中的短少精悍者。-a record and playback operation of the mouse MFC. Clear and concise code, which is similar to the short skinned persons.
    2023-01-19 17:35:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载