[python-win32] Check if user has windows administrator
Tony Cappellini
cappy2112 at gmail.com
Tue Jan 15 03:02:52 CET 2008
Follow-up question.
Why does type-ahead in PythonWin not show more functions after ctypes.windll. ?
Is this because of late-binding???
Message: 3
Date: Mon, 14 Jan 2008 21:29:39 +0200
From: "Graeme Glass" <graemeglass at gmail.com>
Subject: Re: [python-win32] Check if user has windows administrator
privilege
To: "Patrick Li" <patrick at gxlinc.com>
Cc: python-win32 at python.org
On Jan 14, 2008 8:55 PM, Patrick Li <patrick at gxlinc.com> wrote:
import ctypes
print ctypes.windll.shell32.IsUserAnAdmin()
(Courtesy of Thomas Heller - from a posting back in 2006)
I have no idea if it will work on Vista. You will need to try it.
hth,
More information about the python-win32
mailing list