Is there any easy way to get the defines (at least the WM_ stuff) from windows.h in C#?
+5
A:
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.
JaredPar
2009-04-01 13:03:54
I find your answer better than mine :-)
Yossarian
2009-04-01 13:05:02
@Yossarian I +1'd your answer as well. Both are good tools. I'm just biased because i worked in the PInvoke Interop Assistant. :)
JaredPar
2009-04-01 13:09:30
A:
Point your visual studio search to find in file i.e. where Platforms SDK is installed:
Eg: C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
Then search for constant.
You can use this article as reference : How To Find Undocumented Constants Used by Windows API Functions : http://support.microsoft.com/kb/187674
Signcodeindie
2009-09-15 11:12:27