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

CERT_OPEN_STORE_FLAGS can not be treated as bitflags (OR, AND etc.) #1705

Closed
Ben-Lichtman opened this issue Sep 12, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@Ben-Lichtman
Copy link

Ben-Lichtman commented Sep 12, 2023

Summary

Many other flags types in windows-rs implement the std::ops traits necessary for OR etc. on the bitflags, however this one doesn't

(windows::Win32::Security::Cryptography::CERT_OPEN_STORE_FLAGS)

Crate manifest

No response

Crate code

CERT_STORE_OPEN_EXISTING_FLAG | CERT_STORE_READONLY_FLAG does not compile
@Ben-Lichtman Ben-Lichtman added the bug Something isn't working label Sep 12, 2023
@kennykerr
Copy link
Contributor

The bitwise operators will be generated for any enum that has the Flags attribute but these don't have this attribute. I'll transfer to the Win32 metadata repo for consideration.

@kennykerr kennykerr transferred this issue from microsoft/windows-rs Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants