retep998 / winapi-rs

Rust bindings to Windows API
https://crates.io/crates/winapi
Apache License 2.0
1.85k stars 392 forks source link

Cannot initialize NOTIFYICONDATAA_u #1032

Open rrebelo62 opened 2 years ago

rrebelo62 commented 2 years ago

The struct NOTIFYICONDATAW / NOTIFYICONDATAA is used to create icons on the System Tray.

One of it's fields is a union of type NOTIFYICONDATAA_u.

AFAIK, there's no way to create such union, since it's fields are private. Therefore I don't believe we can create icons on the System Tray.

I suspect it is necessary to make one of the union's fields public in order to create it.