[python-win32] how to use CreateProcessWithLogonW

Emin.shopper Martinian.shopper emin.shopper at gmail.com
Tue Jun 2 21:02:35 CEST 2009


On Mon, Jun 1, 2009 at 1:32 PM, Tim Roberts <timr at probo.com> wrote:
> Emin.shopper Martinian.shopper wrote:
>> Dear Experts,
>>
>> Can someone provide an example of how to use CreateProcessWithLogonW?
>>
>
> It's really just a combination of LogonUser and CreateProcess.

Right, the problem is that I don't see it in win32process. Where do I
get CreateProcessWithLogonW?

> Processes created by CreateProcessAsUser don't have access to the
> desktop, by default.  Do you need UI?  If so, you'll need to read
>    http://msdn.microsoft.com/en-us/library/aa379308.aspx

Thanks for the warning. It's *amazing* how complicated windows can
make such a simple concept. I guess its useful to have all that
complexity for something.

For the time being I've found a work around to avoid requiring being
able to create a process as a different user or change user in an
intelligent way. If I ever have time to figure out how to do this
right, I'll post back to the list so others do not have to share my
pain.

Thanks,
-Emin


More information about the python-win32 mailing list