开发者

What was the anticipated use of the reserved parameter on CoInitialize

开发者 https://www.devze.com 2023-04-06 11:28 出处:网络
Its been about 16 years now since it was created and I still don\'t know why there was a reserved parameter in the CoInitialize method. Does anyone know (or is able to make an intelligent guess about)

Its been about 16 years now since it was created and I still don't know why there was a reserved parameter in the CoInitialize method. Does anyone know (or is able to make an intelligent guess about) why this param开发者_如何学JAVAeter was added and what the anticipated use was?


This is actually not for future use, but for backward compatibility. Read: Why was the ability to specify an allocator during CoInitialize removed from the system? by @Larry Osterman, who actually hangs around here occasionally...

In short: that argument used to allow you to specify a custom allocator. But since that feature has been misused, it was deprecated.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号