A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
2.12k
stars
222
forks
source link
User32: make MENUITEMINFO.Create() static #458
Closed
x1unix closed 4 years ago
Hello, currently
MENUITEMINFO.Create()
is instance method and if I need to create the struct with correct size, I need to do this:Currently, I don't see any advantage of non-static
.Create()
because it doesn't utilize original struct's state:I think that it will be more convenient to make this method static to avoid
mii
declaration (or provide alternative way to initialize the struct):