c# Programming Glossary: dwsessionid
Process.Start with different credentials with UAC on http://stackoverflow.com/questions/2313553/process-start-with-different-credentials-with-uac-on false output new StringBuilder try UInt32 dwSessionId WTSGetActiveConsoleSessionId output.AppendLine String.Format.. String.Format Active console session Id 0 dwSessionId IntPtr hUserToken IntPtr.Zero WTSQueryUserToken dwSessionId.. IntPtr hUserToken IntPtr.Zero WTSQueryUserToken dwSessionId ref hUserToken if hUserToken IntPtr.Zero output.AppendLine..
Possible to launch a process in a user's session from a service? http://stackoverflow.com/questions/3128017/possible-to-launch-a-process-in-a-users-session-from-a-service for example with respect of impersonation or you have a dwSessionId of session. If you don't have it you can try use some WTS function.. en us library aa446671.aspx to receive the session id dwSessionId of the users session if you knows the users token hClient ... HANDLE hProcessToken NULL hNewProcessToken NULL DWORD dwSessionId cbReturnLength bSuccess GetTokenInformation hClient TokenSessionId..
|