[python-win32] Determine admin rights
Arve Knudsen
arve.knudsen at gmail.com
Wed Nov 15 16:54:45 CET 2006
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 (
shlobj.h), would it be possible to expose this through pywin32?
Thanks,
Arve Knudsen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20061115/e0730cc7/attachment.html
More information about the Python-win32
mailing list