windows - CoInitialize 上保留参数的预期用途是什么

标签 windows com history

自创建以来已经有 16 年了,我仍然不知道为什么 CoInitialize 中有一个保留参数。方法。有谁知道(或能够做出明智的猜测)添加此参数的原因以及预期用途是什么?

最佳答案

这实际上不是为了将来使用,而是为了向后兼容。阅读:Why was the ability to specify an allocator during CoInitialize removed from the system?作者 @Larry Osterman,他实际上偶尔会在这里闲逛......

简而言之:该参数用于允许您指定自定义分配器。但由于该功能已被滥用,因此已被弃用。

关于windows - CoInitialize 上保留参数的预期用途是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7512236/

相关文章:

linux - Linux 中的路径名查找?

git - 连接两个 Git 存储库的历史记录?

sql - 在不知道机器主机名的情况下在 SQL 脚本中指定 Windows 用户名

linux - 在哪些用例中我需要 WSL

python - 无法在 python 中调度 com 对象

internet-explorer - 为什么 Internet Explorer (9) 在 UserAgent 中报告 "Mozilla"?

php - 在 Windows 上将 Xdebug 和 PhpStorm 与 Docker 容器一起使用

windows - Powershell 远程 PSSession 失败 - 域管理员帐户

c# - 无法创建 C# COM 对象(类未注册)

powershell - 使用-Co​​mObject Word.application而不安装Word