-
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
-
特权升级代码
大多数计算机系统设计用于多个用户。特权意味着允许用户做什么。通用权限包括查看和编辑文件,或修改系统文件。
- 2022-02-11 12:22:28下载
- 积分:1
-
java数据库,这是非常有用的当您尝试使用如java程序…
java for database, It is very useful when you try to use such as java to program .
- 2022-06-03 18:56:53下载
- 积分:1
-
采用目前较为流行的缓存技术,这样大大加速了论坛的访问速度,虽然我们的功能不能和动网相比,但是我们以实际为基础,功能绝对够一般论坛的需求,使用操作简单方便,更适合...
采用目前较为流行的缓存技术,这样大大加速了论坛的访问速度,虽然我们的功能不能和动网相比,但是我们以实际为基础,功能绝对够一般论坛的需求,使用操作简单方便,更适合那些没有多少经验的论坛新人使用
-Currently more popular caching technology, so that greatly accelerated the speed of the Forum
- 2022-01-27 22:24:18下载
- 积分:1
-
WINDOWS let you know how the system at startup, launch other applications
让你了解WINDOWS系统如何在启动时,启动别的应用程序-WINDOWS let you know how the system at startup, launch other applications
- 2022-05-31 12:54:32下载
- 积分:1
-
此为图书管理借阅系统,基于DELPHI操作平台,本人下载以后感觉还不错,上传供大家使用...
此为图书管理借阅系统,基于DELPHI操作平台,本人下载以后感觉还不错,上传供大家使用-to borrow library management system, based on the Delphi platform, I downloaded feeling was good, upload for your use
- 2022-01-21 19:46:59下载
- 积分:1
-
智能指针,很好的vc支持代码, 适合vc开发人员
智能指针,很好的vc支持代码, 适合vc开发人员-smart pointer, good vc support code for developers vc
- 2022-03-07 21:21:47下载
- 积分:1
-
VC++ based on the keyboard hook to write a small program used to enumerate all c...
VC++基于键盘钩子写的一个小程序,用来枚举当前所有打开的窗口名称、标题、类名称等,并实施强制隐藏、显示所选窗口,内含键盘钩子的DLL源文件,测试文件编译后要和DLL文件存放在一个目录中。-VC++ based on the keyboard hook to write a small program used to enumerate all currently open windows name, title, class name, etc., and mandatory hide, show the selected window, containing the keyboard hook DLL source files, test file DLL files should be compiled and stored in a directory.
- 2022-03-21 13:05:29下载
- 积分:1
-
本程序用VC编写,用于获取操作系统的相关信息。
本程序用VC编写,用于获取操作系统的相关信息。- This procedure compiles with VC, uses in to gain the operating
system the related information.
- 2023-08-27 06:35:03下载
- 积分:1
-
这个例子提供了可重用的C++类示范如何编写MFC控制面板程序
这个例子提供了可重用的C++类示范如何编写MFC控制面板程序-this example provides a reusable C demonstrations on how to prepare procedures for the control panel MFC
- 2023-04-27 04:50:03下载
- 积分:1