Re: [python-win32] Determine admin rights

2006-11-15 Thread Thomas Heller
Arve Knudsen schrieb: > Hi > Is there a way I can determine whether a user is a local administrator using > pywin32? I've used NetUserGetLocalGroups to see if the user is in the > "Administrators" group, but this breaks on non-English versions of Windows. > As far as I can see there exists a functi

[python-win32] Determine admin rights

2006-11-15 Thread Arve Knudsen
Hi Is there a way I can determine whether a user is a local administrator using pywin32? I've used NetUserGetLocalGroups to see if the user is in the "Administrators" group, but this breaks on non-English versions of Windows. As far as I can see there exists a function IsUserAnAdmin in shell32.lib