[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 = wi

[python-win32] The "right" way to handle permission issues

2011-05-30 Thread Gremlin
Hello, I'm having some trouble with Windows 7 and probably Windows Vista as well. My application runs elevated and has to create files and folders within the "Program Files"-Folder. (I can't store the files at another place.) I'm using the os module (Python 2.7), rsync, 7zip and gzip to create

Re: [python-win32] How do I detect a 64 bit version of Windows?

2012-02-18 Thread Gremlin
This may help: WIN64 = 'PROGRAMFILES(X86)' in os.environ Best regards _ Von: python-win32-bounces+gremlin=armarize@python.org [mailto:python-win32-bounces+gremlin=armarize@python.org] Im Auftrag von Vernon Cole Gesendet: Samstag, 18. Februar 2012 17:53 An: py