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

Use new windows-bindgen #7

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

youyuanwu
Copy link
Contributor

WIP.
Using the PR: microsoft/windows-rs#3359
There are issues with the new bindgen that this PR will keep uncoverring with small repro code gen scenarios.

src/bindings.rs Outdated
iid == &<IState as windows_core::Interface>::IID
}
}
pub mod Windows {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the problem. The bool type got regenerated.

@@ -1,6 +1,20 @@
import "objidl.idl";
import "oaidl.idl";
import "propidl.idl";
// import "wtypes.idl";

typedef struct StateData
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this struct is removed, and getbool() returns BOOLEAN, bindgen can correctly reference windows crate BOOLEAN type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant