-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LPBSTR parameters should retain metadata about their being BSTRs #947
Comments
Agreed. Note that the docs are wrong:
Should be something like:
|
Whoa, that's quite the doc mistake. How do you know it's a doc bug? |
I looked up the implementation because it sounded wrong. 😏 |
I sent feedback on that doc. Do you suppose they should use |
Yes, the caller should free with |
Per feedback from @kennykerr, remapping all LPBSTR occurrences to BSTR* would be better than introducing PBSTR. |
The
QueryPathOfRegTypeLib
function is documented as having a last parameter that is an[out] LPBSTR
. But in the metadata, we just get[out] uint16**
as the parameter type. This blocks projections from providing friendly methods (e.g. returning astring
).Can the metadata be fixed as has been done with other APIs that accept BSTR for example, so that projections can offer better APIs?
The text was updated successfully, but these errors were encountered: