gpt4 book ai didi

Delphi 应用程序和 TSAWARE header 标志

转载 作者:行者123 更新时间:2023-12-03 14:48:47 25 4
gpt4 key购买 nike

此问题是否也适用于在终端服务器上运行的 Delphi 应用程序?

正如 MSDN 文章“An Office 2007 or Office 2003 application that is running on an RD Session Host server may close unexpectedly in Windows Server 2008 R2”所解释的

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 in which the modules are loaded. Office 2007 and Office 2003 do not contain the TSAWARE header flag. This flag notifies the server that the application is Terminal Server aware.

用户环境 (Windows Server 2008 R2 Service Pack 1) 中的某些 Delphi 2009 应用程序经常挂起或崩溃。我正在寻找可能的原因,因为这些挂起/崩溃无法重现。

MSDN 文章似乎首先适用于 Office 产品,这是正确的还是 - 注意,这是基本问题 - Tsappcmd.dll 是否也会修改非 Office 程序,因此可能会发生错误德尔福应用程序? (当然,如果丢失的 TSAWARE 标志没有危害的话,我宁愿让 Delphi 应用程序保持不变)。

最佳答案

是的,Tsappcmd.dll 将影响 PE header 中没有 TSAWARE 标志的所有程序。但这并不自动意味着所有这些应用程序都会受到此特定错误的影响。但是您可以通过设置 TSAWARE 标志(请参阅 TOndrej 向我的博客提供的链接)或设置知识库文章中提到的注册表项来轻松测试这一点。

PS:它是针对病毒的保护的解释似乎是一个虚假的解释,这种机制是出于应用程序兼容性原因而引入的......

关于Delphi 应用程序和 TSAWARE header 标志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10517022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com