Detects from Windows.h in C #?

Is there an easy way to get definitions (at least WM_ stuff) from windows.h in C #?

+4
source share
3 answers

Another option is to use the PInvoke Interop Assistant. It contains a database of almost every constant defined through windows.h, and provides the ability to translate the C header code on the fly.

http://www.codeplex.com/clrinterop

+7
source

Direct a visual search in the studio to find in the file, i.e. where the Platforms SDK is installed:

For example: C: \ Program Files \ Microsoft SDK \ Windows \ v6.1 \ Include

Then find the constant.

You can use this article as a reference: How to find undocumented constants used by Windows API functions: http://support.microsoft.com/kb/187674

+1
source

All Articles