What was the anticipated use of the reserved parameter on CoInitialize
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.
精彩评论