Click to See Complete Forum and Search --> : How to get Windows NT user's GROUP?


morenz
September 21st, 2005, 07:47 AM
Hi folks! ;)

I have to build an application that simply recognizes the User Template (or Group, call it as you want) of the current (logged) user and then call, according with group found (Administrators, Power Users, etc), call another program instead of another.
I thought it could not be done by Windows configuration, because machines can get new users and user can change groups (so I cannot put a program or another in Startup Menu)

To get Username there is an API (GetUserName), but can I get user template?

Thanks a lot in advance,
Morenz

Ejaz
September 21st, 2005, 08:07 AM
Search for NetUserGetLocalGroups (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netusergetlocalgroups.asp) at these boards. :thumb: