Windows-rs: Add support for Win32 struct fields of array type

Created on 22 Jan 2021  路  5Comments  路  Source: microsoft/windows-rs

In the windows-rs docs the rgrc field of NCCALCSIZE_PARAMS is a bool, but the microsoft docs and the winapi crate docs say it should be a [RECT; 3]

enhancement

Most helpful comment

Why use a wrong type (bool) instead of todo!() or something like that? People will struggle to realize what's wrong with their code.

All 5 comments

Yes, I still need to add support for struct fields of arrays.

https://github.com/microsoft/windows-rs/blob/master/crates/gen/src/type.rs#L103-L109

Why use a wrong type (bool) instead of todo!() or something like that? People will struggle to realize what's wrong with their code.

I'm having the same issue with bindings::windows::win32::security::TOKEN_PRIVILEGES.

Ryan added a tweak to make it easier to identify such APIs. I'll get this fixed asap.

Sorry for the delay. This is now fixed as of https://github.com/microsoft/windows-rs/pull/608.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rylev picture rylev  路  3Comments

DJankauskas picture DJankauskas  路  3Comments

rylev picture rylev  路  5Comments

bdbai picture bdbai  路  3Comments

AyashiNoCeres picture AyashiNoCeres  路  4Comments