Closed anforowicz closed 1 month ago
The windows-sys
crate provides a minimal set of traits to minimize build time. The windows
create does however provide such traits for this struct.
https://kennykerr.ca/rust-getting-started/windows-or-windows-sys.html
Suggestion
AFAIU the
OFSTRUCT
struct doesn't implement theDefault
trait. This means that the user of the struct is forced to spell out all the struct fields during initialization, includingReserved1
andReserved2
, as well ascBytes
. Would it be possible to have theDefault
impl
provided by thewindows-sys
crate?