terminal-services

Delphi applications and the TSAWARE header flag [closed]

谁说我不能喝 提交于 2019-12-01 04:13:18
Could this problem also apply to Delphi applications running on Terminal Servers? As the MSDN article " An Office 2007 or Office 2003 application that is running on an RD Session Host server may close unexpectedly in Windows Server 2008 R2 " explains This issue occurs because of the Tsappcmd.dll component. This component makes changes to the Import Address Table (IAT) for applications that are not Terminal Server aware in order to prevent viruses or malware from maliciously hooking the application. Because of this, the application may experience temporary memory corruption because of the order

Detect source of remote desktop connection

我只是一个虾纸丫 提交于 2019-11-30 13:57:30
问题 This question tells me how to detect a remote desktop session. Do anybody know if it's possible to find out from where the remote connection was initialized? -Vegar 回答1: Since it's in windows use netstat to check which machines you are connected to and on which ports and just parse out the address for the one that uses the port that remote desktop uses. 回答2: @Vegar, you can use the WTSEnumerateSessions and WTSQuerySessionInformation functions to retrieve this info. check this link for an

Recommended PE header settings for Delphi 7 application running on terminal server?

浪子不回头ぞ 提交于 2019-11-30 03:15:40
While investigating external exception C0000006 errors reported by some users running a Delphi 7 application on a Windows 2008 terminal server, I found several questions on this and related issues already. I'm wondering if anyone has a definitive list of these settings that would be appropriate for a standard Delphi 7 database application running on a terminal server. The questions I've looked at include: External exception C0000006 Delphi - invalid stream format errors on run Are there risks associated with IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP or IMAGE_FILE_NET_RUN_FROM_SWAP? Delphi TOpenDialog

Runas in another Windows terminal session

亡梦爱人 提交于 2019-11-29 02:23:46
For simplicity, let's say the user Administrator is logged in in terminal session 2 . Another user Boda is logged in terminal session 3 . Is it possible to runas a program in session 3 from session 2 ? For simplicity, let's say I want to start calc.exe in session 3 (in Boda's session). How do I do that? Can it be done with runas ? Like Harry Johnston suggested in a comment you can do this using the psexec tool available on TechNet . I've tried it using a Windows 2008 Server running Terminal Services and managed to start various applications in another users session (although not calc.exe - it

Recommended PE header settings for Delphi 7 application running on terminal server?

本小妞迷上赌 提交于 2019-11-29 00:51:08
问题 While investigating external exception C0000006 errors reported by some users running a Delphi 7 application on a Windows 2008 terminal server, I found several questions on this and related issues already. I'm wondering if anyone has a definitive list of these settings that would be appropriate for a standard Delphi 7 database application running on a terminal server. The questions I've looked at include: External exception C0000006 Delphi - invalid stream format errors on run Are there risks

Determine if a program is running on a Remote Desktop

泪湿孤枕 提交于 2019-11-28 22:58:46
Is there a way my program can determine when it's running on a Remote Desktop (Terminal Services)? I'd like to enable an "inactivity timeout" on the program when it's running on a Remote Desktop session. Since users are notorious for leaving Remote Desktop sessions open, I want my program to terminate after a specified period of inactivity. But, I don't want the inactivity timeout enabled for non-RD users. GetSystemMetrics(SM_REMOTESESSION) (as described in http://msdn.microsoft.com/en-us/library/aa380798.aspx ) Here's the C# managed code i use: /// <summary> /// Indicates if we're running in

Preferred way Of getting Client name From Terminal Server Session

社会主义新天地 提交于 2019-11-28 20:58:30
I need to get the underlying client PC name from a user's terminal server session. I know it lives in HKEY_CURRENT_USER\Volatile Environment\CLIENTNAME but is there another (preferably native .net) method of getting it? I didn't see a managed API for this. The only API-based ways I could see for getting at this information would be through WMI or the native Terminal Services API in Windows. Here is an example that returns the client name using the WTSQuerySessionInformation API: namespace com.stackoverflow { using System; using System.Runtime.InteropServices; public class Program { static void

Determine if a program is running on a Remote Desktop

瘦欲@ 提交于 2019-11-27 14:41:24
问题 Is there a way my program can determine when it's running on a Remote Desktop (Terminal Services)? I'd like to enable an "inactivity timeout" on the program when it's running on a Remote Desktop session. Since users are notorious for leaving Remote Desktop sessions open, I want my program to terminate after a specified period of inactivity. But, I don't want the inactivity timeout enabled for non-RD users. 回答1: GetSystemMetrics(SM_REMOTESESSION) (as described in http://msdn.microsoft.com/en

Preferred way Of getting Client name From Terminal Server Session

冷暖自知 提交于 2019-11-27 13:21:48
问题 I need to get the underlying client PC name from a user's terminal server session. I know it lives in HKEY_CURRENT_USER\Volatile Environment\CLIENTNAME but is there another (preferably native .net) method of getting it? 回答1: I didn't see a managed API for this. The only API-based ways I could see for getting at this information would be through WMI or the native Terminal Services API in Windows. Here is an example that returns the client name using the WTSQuerySessionInformation API:

How can we overwrite EXE files while users are running them? [closed]

落花浮王杯 提交于 2019-11-27 08:08:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Background: Our companies internal user's run our .Net programs on 10-20 windows terminal servers. The executables are all stored on a central file server running windows 2003. Some of the terminal servers are running windows 2003 and some are running 2008. Issues: When we release a new version of one of our