“Ex” 是什么意思? Windows API 函数名称中代表什么?

发布于 2024-09-29 10:13:07 字数 203 浏览 3 评论 0原文

在 Windows API 和各种其他库中,我看到了方法的多个入口点,我注意到在 MyApiCall 和 MyApiCallEx 等场景中使用了 Ex 缩写。

我的假设是,这代表 Extension 或 Extra有人可以确认一下吗?

任何有关为什么选择 Ex 而不是 MyApiCall2 或类似内容的历史记录也将受到赞赏。

In windows APIs and various other libraries where I have seen multiple entry points to methods I have noticed the use of the Ex abbreviation in scenarios such as MyApiCall and MyApiCallEx.

My assumption is that this stands for Extension or Extra could someone please confirm?

Any history on why Ex was chosen rather then MyApiCall2 or similar would also be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤独陪着我 2024-10-06 10:13:07

我的印象是它代表扩展,就像该特定库的更详细的界面一样。

例如,具有 4 个参数的 CreateFile 是典型版本,而具有 17 个参数的 CreateFileEx 是对如何打开文件、如果文件不存在时会发生什么等提供更多控制和更精细细节的版本,因此得到了扩展。

I was under the impression it stood for extended, as in a more detailed interface for that particular library.

For example, CreateFile with 4 parameters is the typical version and CreateFileEx with 17 is the version offering more control and finer detail over how the file is opened, what occurs if it doesn't exist, etc, and is thus extended.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文