IGroupPolicyObject [英] IGroupPolicyObject

查看:161
本文介绍了IGroupPolicyObject的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用ms vs9,并且正在开发一个程序,该程序将编辑组策略.我正在使用C.但是,我收到的编译错误例如

I am using ms vs9 and am developing a program that will edit group policies. I am using C. However, I am recieving compilation errors such as

错误C2039:"GetRegistryKey":不是"IGroupPolicyObject"的成员
C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ include \ GPEdit.h(376):请参见"IGroupPolicyObject"的声明

error C2039: 'GetRegistryKey' : is not a member of 'IGroupPolicyObject'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GPEdit.h(376) : see declaration of 'IGroupPolicyObject'

以前有没有人遇到过这些错误,如果是的话,如何解决这些错误?

Has anyone come accross these errors before, and if so, what is the solution to them?

 

预先感谢

jonl

推荐答案

奇怪的问题. ://blogs.msdn.com/b/dsadsi/archive/2009/07/23/working-with-group-policy-objects-programmatically-simple-c-example-illustrating-how-to-modify-a-registry -based-policy.aspx> 本文 在VS 2008上编译没有错误.您可以尝试 我的样本.

Strange issue. Code from this article compiles with no errors on VS 2008. You can try my sample.

在此处发布您的代码块.

Post your code block here.


这篇关于IGroupPolicyObject的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆