Steven,
Thanks, I will give this a try.
So then, is it fair to say that it is not possible (on Vista) to have a
service spawn a process as a different user, and have that new process
interact with the desktop?
-Matt
From: [EMAIL PROTECTED]
[mailto:[
Matt Herbert (matherbe) wrote:
> Steven,
>
> Thanks, I will give this a try.
>
> So then, is it fair to say that it is not possible (on Vista) to have
> a service spawn a process as a different user, and have that new
> process interact with the desktop?
No, that's not fair to say! The mechan
Hey all,
So I think I found the missing piece of the riddle. My problem was that
the sub process I was creating via CreateProcessAsUser was ending up on
the default desktop of terminal services session 0. This is where all
services end up on Vista. The interactive desktop, however, is on
terminal
Hey all,
Anybody know how to get a token for the current user? I'm thinking
something similar to win32api.GetUserName, but instead it would return
the token??
-Matt
___
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/li
Matt Herbert (matherbe) wrote:
> Anybody know how to get a token for the current user? I'm thinking
> something similar to win32api.GetUserName, but instead it would return
> the token??
>
I suspect you want OpenProcessToken or OpenThreadToken, assuming your
process is running as the current us
> [1] On my python (active state 2.5.1), the
> WTSGetActiveConsoleSessionId() function raises NotImplementedError.
> However, I can easily run it by just invoking it through ctypes:
> ctypes.windll.kernel32.WTSGetActiveConsoleSessionId() Is this a bug?
It is a bug, and I've just checked in a fix (