[python-win32] DuplicateTokenEx

2010-04-20 Thread le dahut
Hello, I'm trying to use win32security.DuplicateTokenEx but I encounter an error. My code looks like this : def getusertoken(): # process.get_pids(procname) returns a list of the pids of running copies of procname # for winlogon I suppose there is only one copy p =

Re: [python-win32] DuplicateTokenEx

2010-04-20 Thread Tim Golden
On 20/04/2010 15:39, le dahut wrote: Hello, I'm trying to use win32security.DuplicateTokenEx but I encounter an error. My code looks like this : def getusertoken(): # process.get_pids(procname) returns a list of the pids of running copies of procname # for winlogon I suppose

Re: [python-win32] Getting PyWin32 working with private Python installs

2010-04-20 Thread Howard Lightstone
I've had a private Python25 install running with win32 for a while. I believe the trick is that the pythoncom25.dll and pywintypes25.dll have to be in the SAME folder as the python.exe that you want to use (due to Windoze own variety of internal search paths for DLLs). In my code, I also alter

Re: [python-win32] Getting PyWin32 working with private Python installs

2010-04-20 Thread Howard Lightstone
On Tue, Apr 20, 2010 at 10:14 AM, Bill Janssen jans...@parc.com wrote: Howard Lightstone how...@eegsoftware.com wrote: I've had a private Python25 install running with win32 for a while. I believe the trick is that the pythoncom25.dll and pywintypes25.dll have to be in the SAME folder

Re: [python-win32] Getting PyWin32 working with private Python installs

2010-04-20 Thread Bill Janssen
Howard Lightstone how...@eegsoftware.com wrote: On Tue, Apr 20, 2010 at 10:14 AM, Bill Janssen jans...@parc.com wrote: Howard Lightstone how...@eegsoftware.com wrote: I've had a private Python25 install running with win32 for a while. I believe the trick is that the pythoncom25.dll