[python-win32] NT service
Tim Golden
tim.golden at viacom-outdoor.co.uk
Wed Nov 10 12:26:48 CET 2004
[walou]
| how can I get the event "user XXX is opening a session" or/and the
| event "user XXX's registry hive is ready to be modified" ?
Quick answer. I googled for "enumerating logon sessions" and
came across a useful-looking Code Project article by Stefan
Kuhr which suggests -- among other interesting ideas -- using
WMI. Have a look at his article, but basically since you're on XP,
you can use the Win32_Session class and you can use WMI event
querying to detect when a session has been created (or, presumably
destroyed).
Haven't tried it, I'm afraid, beyond checking that you can get
the Win32_Session object on XP, but it has potential.
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-win32
mailing list