Great! Works a treat! I think I'll go with the run under system account
option.
Tom
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roger Upole
Sent: Wednesday, March 02, 2005 7:49 PM
To: python-win32@python.org
Subject: [python-win32] Re: win32pr
You should be able to use something like this:
th=win32security.OpenProcessToken(handle,win32security.TOKEN_READ)
sid=win32security.GetTokenInformation(th,win32security.TokenUser)[0]
print win32security.LookupAccountSid('',sid)
However, you're going to need to jack up your privileges