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

2010-04-20 Thread Bill Janssen
Howard Lightstone wrote: > On Tue, Apr 20, 2010 at 10:14 AM, Bill Janssen wrote: > > > Howard Lightstone 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

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 wrote: > Howard Lightstone 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 as the python.exe that you want

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

2010-04-20 Thread Bill Janssen
Howard Lightstone 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 as the python.exe that you want to use (due to Windoze > own variety of internal search paths for

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 th

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 "" # for "winlogon" I suppose ther

[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 "" # for "winlogon" I suppose there is only one copy p = win32api.Open