使用 qWAVE 所需的 Windows 权限/策略
我尝试使用 qWAVE(在 Windows Server 2008 R2 上)在套接字流量上设置任意 DSCP 值。我认为我正确设置了流程,但是当我尝试调用 QOSSetFlow() 时,我收到 ERROR_ACCESS_DENIED 错误(“调用应用程序没有足够的权限来执行请求的操作。”)。运行此代码的用户是管理员组的成员,我已经查看了各种安全策略,但没有看到任何看起来相关的内容。有谁知道我需要向用户授予什么权限才能使此 API 正常工作?
谢谢!
更新:我有一个测试程序,它只是尝试设置 DSCP 值,当我在“兼容性”菜单下选中“以管理员身份运行”时,一切正常。所以代码没问题,并且管理员用户具有必要的权限。不幸的是,实际服务无法以管理员用户身份运行。有没有办法向管理员组(或特定用户)授予管理员用户拥有的某些权限?
I'm attempting to use qWAVE (on Windows Server 2008 R2) to set arbitrary DSCP values on socket traffic. I think I'm setting up the flow correctly, but when I try to call QOSSetFlow(), I'm getting an ERROR_ACCESS_DENIED error ("The calling application does not have sufficient privileges for the requested operation."). The user that's running this code is a member of the Administrators group, and I've looked through the various security policies but didn't see anything that looked relevant. Does anyone know what permission I need to give the user to get this API to work?
Thanks!
UPDATE: I've got a test program that just tries to set the DSCP values, and when I check "Run as Administrator" under the Compatibility menu everything works fine. So the code is okay, and the Administrator User has the necessary permissions. Unfortunately the actual service can't be run as the Administrator User. Is there a way to give the Administrators Group (or a specific user) some of the permissions that the Administrator User has?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论