Re: [python-win32] Issue with win32evtlog.ReportEvent

2011-04-14 Thread Amaury Forgeot d'Arc
Hi 2011/4/14 Mark Hammond skippy.hamm...@gmail.com: Yeah - this is a bug in the general DWORD handling in SWIG generated files.  I'm not sure how to tell SWIG to use a different format char, but I have managed to work around it in other ways which is good for the general case. With the old

Re: [python-win32] Issue with win32evtlog.ReportEvent

2011-04-14 Thread Mark Hammond
On 14/04/2011 4:55 PM, Amaury Forgeot d'Arc wrote: Was it ever considered using a newer version of Swig? Sadly some hacks were made to SWIG to support some of the COM objects and the source to those changes were lost many years ago - this needs to be revisited before we can upgrade. I

Re: [python-win32] Issue with win32evtlog.ReportEvent

2011-04-14 Thread Chris Frantz
On Wed, Apr 13, 2011 at 11:55 PM, Mark Hammond skippy.hamm...@gmail.comwrote: Yeah - this is a bug in the general DWORD handling in SWIG generated files. I'm not sure how to tell SWIG to use a different format char, but I have managed to work around it in other ways which is good for the

[python-win32] Strange error with win32security.AdjustTokenPrivileges

2011-04-14 Thread Gremlin
Hello. I want to adapt the following technique into python: http://blogs.msdn.com/b/aaron_margosis/archive/2009/06/06/faq-how-do-i-start -a-program-as-the-desktop-user-from-an-elevated-app.aspx So I started with the following code: import win32security import win32process process =

Re: [python-win32] Strange error withwin32security.AdjustTokenPrivileges

2011-04-14 Thread Roger Upole
In the call to OpenProcessToken, you'll need to specify TOKEN_QUERY also. Roger Gremlin grem...@armarize.com wrote in message news:7C1FF6262D1C41509DEDE93ABBA01CFC@BELLO... Hello. I want to adapt the following technique into python: