Re: Interactive Services in Vista - impossible at all?
- From: Corinna Vinschen <spam@xxxxxxxxxxx>
- Date: Thu, 23 Nov 2006 17:56:04 +0000 (UTC)
Herrmann Michailowicz wrote:
[...]
Our service performs the following tasks (the service is started under
system account)
- obtain a sid by doing a LogonUser(...) (user may be administrator or
not)
- switch to interactive winsta & desktop Wintsa0\Default
and add an access-allowed ACE with the obtained sid to Winsta0 &
Default
- launch an (GUI-MFC) app with Wints0\Default as winsta/desktop
combination
Up to XP all works perfectly i.e. the app runs under the desired account
and has desktop access.
As reported earlier in some ngs Vista won't allow this any more - seems
to be right.
The service starts correctly, adds the ACEs to Winsta0\Default, launches
the app (Showed in TaskMgr does logfile writes as expected).
But: It ain't visible, i.e. does *not* run on the interactive Winsta.
Can anybody tell me how to fix that if possible at all?
I assume that Winsta0\Default ain't the "real" interactive desktop ....
Help would be greatly appreciated!
Basically, even the console GUI session is not running in session 0
anymore. Session 0 is reserved for system services. There's an MSDN
article describing what should be changed with respect to interactive
services:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/interactive_services.asp
Other that that, perhaps it's possible to create your GUI in the console
session using a couple of terminal service functions, like this:
session_id = WTSGetActiveConsoleSessionId ();
ts_hdl = WTSOpenServer (my_machine);
WTSQuerySessionInformation (ts_hdl, session_id, WTSWinStationName, ...);
SetTokenInformation (my_user_token, TokenSessionId, session_id, ...);
etc.
That's just an idea. I didn't test it myself, so take this with a grain
of salt.
Corinna
--
Antworten an o.g. (existierende) Adresse werden ungelesen verworfen.
Private Mails bitte an corinnaPLOPvinschenPINGde.
.
- References:
- Interactive Services in Vista - impossible at all?
- From: Herrmann Michailowicz
- Interactive Services in Vista - impossible at all?
- Prev by Date: WlxLoggedOnSAS called from Winlogon and workstation gets while WlxWkStaLockedSAS still executing when user enters Ctrl+Alt+Del
- Next by Date: RE: one administraitor account only in Vista
- Previous by thread: Interactive Services in Vista - impossible at all?
- Next by thread: WlxLoggedOnSAS called from Winlogon and workstation gets while WlxWkStaLockedSAS still executing when user enters Ctrl+Alt+Del
- Index(es):
Relevant Pages
|