Skip to content
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

Inconsistencies and missing entities in comparison with C++ and winapi-rs API #720

Closed
12 tasks done
ancwrd1 opened this issue Nov 3, 2021 · 5 comments
Closed
12 tasks done
Assignees
Labels
missing api Some documented API is missing from the metadata usability Touch-up to improve the user experience for a language projection

Comments

@ancwrd1
Copy link

ancwrd1 commented Nov 3, 2021

I've been porting some projects from winapi-rs and from C++ to windows-rs, here is the list of inconsistencies found so far. I thought it might be a good idea to report them here.

@kennykerr
Copy link
Contributor

Thanks Dmitry! That's great feedback. These definitions come from the win32 metadata project so I'll transfer this issue for them to handle.

@kennykerr kennykerr transferred this issue from microsoft/windows-rs Nov 3, 2021
@mikebattista mikebattista added missing api Some documented API is missing from the metadata usability Touch-up to improve the user experience for a language projection labels Nov 4, 2021
mikebattista added a commit that referenced this issue Nov 10, 2021
mikebattista added a commit that referenced this issue Nov 10, 2021
@mikebattista
Copy link
Contributor

Many native APIs accept const strings but with PWSTR I am always forced to cast to *mut u16

Could you clarify what we could improve here?

@kennykerr
Copy link
Contributor

Many native APIs accept const strings but with PWSTR I am always forced to cast to *mut u16

This is Rust-specific and has already been handled by the windows crate. See microsoft/windows-rs#1468 and microsoft/windows-rs#1470

@mikebattista
Copy link
Contributor

Thanks. I will mark it completed.

@mikebattista
Copy link
Contributor

Remaining tasks are tracked by separate issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing api Some documented API is missing from the metadata usability Touch-up to improve the user experience for a language projection
Projects
None yet
Development

No branches or pull requests

4 participants