Re: How to get the current active desktop
From: Adam Overton [MS] (adamo@online.microsoft.com)
Date: 06/24/02
- Next message: George: "Simple File Sharing for User"
- Previous message: Will Denny: "Re: Nimda E virus"
- In reply to: Manoj: "How to get the current active desktop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Adam Overton [MS]" <adamo@online.microsoft.com> Date: Mon, 24 Jun 2002 09:11:15 -0700
It's not the active console session you want, (which you could get with
WTSGetActiveConsoleSessionId), but the RPC caller. I think you can get this
by impersonating the RPC caller and then querying the information. I don't
have specific instructions on this, so consider this a lead rather than a
complete solution.
-- This posting is provided "AS IS" with no warranties, and confers no rights. "Manoj" <m_s77@hotmail.com> wrote in message news:eM9zGMDGCHA.1920@tkmsftngp08... > Hello, > > I have got a service which runs under a user who is a member of > Administrators group. I have assigned this group SE_TCB_NAME, SE_DEBUG_NAME, > SE_ASSIGNPRIMARYTOKEN_NAME and SE_INCREASE_QUOTA_NAME priviledges. > > This service runs requested process for the clients with some specific > priviledges. Now the process has to be run on the same desktop from where > the request has been made. > > But for a terminal service client or for windowsXp Fast User switching mode, > how can I get the desktop name. As per WTS documentation > > WTSQuerySessionInformation -WTSWinStationName : Pointer to a null-terminated > string containing the name of the specified session. > Note: Despite its name, specifying this type does not return the window > station name. Rather, it returns the name of the Terminal Services session. > Each Terminal Services session is associated with an interactive window > station. Currently, since the only supported window station name for an > interactive window station is "WinSta0", each session is associated with its > own "WinSta0" window station. > > So it means I will always get windows station name as winsta0. > > Thats why it is important to get the desktop name especially for WindowsXP. > > Is it possible ? if yes then please help me out. > > regards, > > Manoj > > > > > > > > > > > > >
- Next message: George: "Simple File Sharing for User"
- Previous message: Will Denny: "Re: Nimda E virus"
- In reply to: Manoj: "How to get the current active desktop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|