Re: [python-win32] DuplicateTokenEx

2010-04-21 Thread le dahut
20/04/2010 17:05, Tim Golden wrote : 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 "" # f

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