vrrathod
vrrathod

Reputation: 1240

How to configure Windows Group Policy using c++?

I am working on IE BHO toolbar. When I install it for IE 8, it works fine. In case of IE 9, It pops up an info bar asking if to enable it. I know what settings to change in group policy manually. I just do not know how to do it in programming.

Changes to make are in Group Policy:

Modifications:

Are there any straight forward APIs to do this job?

I am primarily looking for C++ APIs but I am fine with C# / WMI based approach too.

Upvotes: 1

Views: 4808

Answers (1)

RRUZ
RRUZ

Reputation: 136391

Exists a couple of ways to handle the Windows Group Policies

1) You can use the Group Policy API which has a set of interfaces to access from C++.

2) Using the RSoP WMI Classes

3) Locating the windows registry key where the Group Policy are stored using the Group Policy Settings Reference for Windows and Windows Server

Upvotes: 6

Related Questions