-
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
-
读取注册表源代码
读取注册表源代码-registry read source code
- 2022-05-22 17:57:02下载
- 积分:1
-
这是一个对注册表进行操作的模块,你可以把它添加到自已的程序中哦~...
这是一个对注册表进行操作的模块,你可以把它添加到自已的程序中哦~-this a registry for operation of the module, you can add it to their own procedures oh ~
- 2023-08-10 15:05:02下载
- 积分:1
-
asp+html编程,asp与html的完美结合,初学者仔细体会大有帮助。...
asp+html编程,asp与html的完美结合,初学者仔细体会大有帮助。-asp html programming, asp html with the perfect combination of carefully beginners experience of great help.
- 2022-02-01 08:53:41下载
- 积分:1
-
用vc来操作excel
读取写入等功能
需要安装xml2.0 parser
用vc来操作excel
读取写入等功能
需要安装xml2.0 parser-Vc to operate with read write excel functions need to install xml2.0 parser
- 2022-03-31 17:17:57下载
- 积分:1
-
学习简单的字符串加密技术;
演示用wm_copydata进行数据交换;...
学习简单的字符串加密技术;
演示用wm_copydata进行数据交换;
-learn simple string encryption technology; Demo wm_copydata for data exchange;
- 2022-02-01 09:30:02下载
- 积分:1
-
example, application procedures for small C builder
串口实例程序,应用C++builder小程序-example, application procedures for small C builder
- 2023-06-05 23:45:04下载
- 积分:1
-
Tracking routing the sample code, very good. Hope everyone has to help
跟踪路由的的示例代码,很好的。希望对大家有帮助-Tracking routing the sample code, very good. Hope everyone has to help
- 2022-07-11 18:38:38下载
- 积分:1
-
Using and reading of PStorage (Protected storage) where Internet Explorer saves...
Using and reading of PStorage (Protected storage) where Internet Explorer saves its data (Logins, Passwords etc.)
- 2022-11-24 19:35:03下载
- 积分:1
-
真正的硬盘序列号提取实例,绝对不是卷标的提取.
真正的硬盘序列号提取实例,绝对不是卷标的提取.-really drives serial extraction example, the label is not extracted.
- 2023-04-20 04:40:03下载
- 积分:1