Some useful tools
If we deal with definitions and also with the distinct ways in which a system's API should be called from .NET, there's a reference website: PInvoke.net (available at http://www.pinvoke.net/).
You'll find the vast majority of the system's APIs clearly detailed, explaining the way they work, how they should be defined in our code (either from C# or VB.NET), and all other related information.
For example, knowing that all window messages are defined with the WM_ prefix, we can expand it under the Constants topic to locate the one I used earlier.
Furthermore, we are shown a definition of the message and its purpose, along with the hexadecimal number associated with it, and at the end of that list, you'll find the C# definitions, where ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access