You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IExplorerCommand::GetState returns EXPCMDSTATE in C, which is a typedef to DWORD, while all the values are part of the _EXPCMDSTATE enum, necessitating extra casts when used in Rust. As all the valid values are part of that enum, the function could return that type directly, similar to #1674. The same applies to IExplorerCommand::GetFlags and EXPCMDSTATE / _EXPCMDSTATE.
Additionally, _EXPCMDSTATE / _EXPCMDFLAGS aren't marked as flags, so combining them via bitwise operations is impossible without casts in windows-rs.
The text was updated successfully, but these errors were encountered:
The underlying type of _EXPCMDSTATE is int sadly. We might be able to use the associated enum attribute here, haven't looked yet. Will leave this open for others to chime in.
IExplorerCommand::GetState
returnsEXPCMDSTATE
in C, which is a typedef toDWORD
, while all the values are part of the_EXPCMDSTATE
enum, necessitating extra casts when used in Rust. As all the valid values are part of that enum, the function could return that type directly, similar to #1674. The same applies toIExplorerCommand::GetFlags
andEXPCMDSTATE
/_EXPCMDSTATE
.Additionally,
_EXPCMDSTATE
/_EXPCMDFLAGS
aren't marked as flags, so combining them via bitwise operations is impossible without casts inwindows-rs
.The text was updated successfully, but these errors were encountered: