Having two security products installed at the same time isn’t a great idea, but sometimes you have to do it

Raymond Chen · 2026年11月23日

AI 摘要 AI 生成,可能有误

同时安装多个安全或反恶意软件产品是有风险的,因为它们可能会互相误判为恶意软件,而且像函数挂钩(detour)这类系统级修改可能造成冲突或死锁。将每个产品添加到对方的排除列表中只能部分解决问题。尽管如此,大型企业往往觉得不得不运行多种安全工具(反恶意软件、端点检测与响应、数据丢失防护、数据分类),因为没有单一产品能满足其全部需求,只能接受发生冲突的风险。

Not too long ago, I noted that if you install multiple anti-malware products, they might each think the other is malware.

I used a metaphor of hiring two security services to patrol your building and making sure they know about each other so that they don’t treat the other one as an intruder. And I noted that you can’t introduce software products to each other.

But you can, sort of.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 The Old New Thing

Version control is not the same as version numbers

AI 摘要Using Microsoft Comic Chat's open-source release—where v1.0-pre and v1.0 shared the same internal version number—as an example, the article explains that version control and version numbering are different things. Version control records source code history and coordinates changes, while version numbering is a release management task of stamping a build-accessible number into a resource or manifest file. The author concludes that the missed version increment was a release management lapse by the Research division (which rarely needs mass-market release diligence), not a failure of version control.

Could we use the CoreApplication Properties to manage the lifetime of an object that refuses to be marshaled?

AI 摘要The article examines whether CoreApplication.Properties can manage the lifetime of a non-marshalable object, but since it relies on RoGetAgileReference, storing such an object fails with CO_E_NOT_SUPPORTED. An alternative approach of wrapping the non-marshalable object in a marshalable wrapper and storing it under a generated key would work, but it adds unnecessary complexity. It's simpler to just keep the marshalable wrapper itself, so CoreApplication.Properties provides no added value.

What happens when you put a non-agile object in the CoreApplication Properties?

AI 摘要When a non-agile object is stored in CoreApplication.Properties, it is wrapped via RoGetAgileReference, and the reference is released when the creating apartment shuts down, destroying the object. The key-value pair remains in the Properties collection, so HasKey() still returns true, but attempting to retrieve it fails with E_INVALIDARG because the entry is a poisoned reference to an already-destroyed object. Such an expired entry cannot be accessed; it can only be removed.

Why did it seem that the entries in the CoreApplication Properties expired when the source application shut down?

AI 摘要Entries in CoreApplication.Properties do not actually expire when the originating apartment shuts down; rather, if the stored objects are non-agile, they become unusable because COM wraps them in an agile wrapper and uses proxies that must call back to the object's original thread. What Luca observed as 'expiring' entries was really just the non-agile object values failing once their apartment was gone, likely because he implemented the COM objects by hand instead of using libraries that produce agile objects by default.

What happens to entries in the CoreApplication Properties when the source apartment shuts down?

AI 摘要This article explains that entries added to CoreApplication.Properties do not expire when the COM apartment that added them shuts down; they remain accessible, as demonstrated by a code example where a value added on a secondary thread survives after that thread's apartment is uninitialized. However, the entries do expire when the last apartment in the process shuts down, because that is when COM shuts down entirely for the process.