Is there any easy way to get the defines (at least the WM_ stuff) from windows.h in C#?
Sure, you can copy them out of the code listing here at the Pinvoke website:
http://www.pinvoke.net/default.aspx/Enums/WindowsMessages.html
Another option is to use the PInvoke Interop Assistant. It contains a data base of almost every constant defined via windows.h and provides the ability to translate C header code on the fly.
http://www.codeplex.com/clrinterop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With