tags:

views:

416

answers:

3

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.

http://www.codeplex.com/clrinterop

JaredPar
I find your answer better than mine :-)
Yossarian
@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
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