views:

88

answers:

2

I have a Qt/C++ project and an old VB6 project.

The user base might not have permissions to HKEY_LOCAL_MACHINE due to lack of administrator rights but I need to update a registry entry.

How can I get a list of the groups to which a user belongs?

+1  A: 

Take a look at the NetGroupGetUsers API.

Ferruccio
+1  A: 

I have this is_admin program bookmarked. It's a good example of how to do this.

nabiy