在 Windows Vista 和 2008 Server 上无需管理员身份即可使用内存中的锁定页面

发布于 2024-07-04 03:47:58 字数 394 浏览 3 评论 0原文

以下问题回答了如何在 Windows 上获取大内存页面:
"如何运行包含大页面的应用程序在窗口中”。

我要解决的问题是如何在 Vista 和 2008 Server 上配置它。

通常,您只需允许特定用户锁定内存中的页面即可。 然而,在 Vista 和 2008 上,这仅在您使用管理员帐户时才有效。 如果用户实际上是管理员组的一部分,则没有帮助。 所有其他用户始终会收到 1300 错误代码,指出缺少某些权限。

有人知道还需要配置什么吗?

谢谢, 斯塔凡

The following question answers how to get large memory pages on Windows :
"how do i run my app with large pages in windows".

The problem I'm trying to solve is how do I configure it on Vista and 2008 Server.

Normally you just allow a specific user to lock pages in memory and you are done. However on Vista and 2008 this only works if you are using an Administrator account. It doesn't help if the user is actually part of the Administrators group. All other users always get a 1300 error code stating that some rights are missing.

Anyone have a clue as to what else needs to be configured?

Thanks,
Staffan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清醇 2024-07-11 03:47:58

在 Vista 和 Windows 2008 上,您会受到 UAC 的困扰。 管理员组中的人员拥有受限令牌,该令牌不包含他们的所有权限。 UAC 提升提示用于打开额外权限。

我假设“锁定内存中的页面”特权是额外的功能之一。

真正的“管理员”帐户不受 UAC 约束。

您需要提升运行程序,这意味着从提升的命令提示符运行它,或者使用声明“requireAdministrator”的清单进行设置。

On Vista and Windows 2008, you're getting bitten by UAC. People in the Administrators group have a restricted token, which doesn't contain all of their privileges. The UAC elevation prompt is used to turn on the extra privileges.

I'm assuming that the "lock pages in memory" privilege is one of the extras.

The real "Administrator" account isn't subject to UAC.

You need to run your program elevated, which means running it from an elevated command prompt, or setting it up with a manifest that states "requireAdministrator".

流殇 2024-07-11 03:47:58

http://support.microsoft.com/default.aspx? scid=kb;EN-US;918483

逐步了解固定页面所需的用户权限

http://support.microsoft.com/default.aspx?scid=kb;EN-US;918483

Walks through the user rights required to pin pages

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文