Access Win32 from .NET

Back when C# was in technology preview, I wrote a paper analyzing the reasons for its existance. In this paper, I made note of the fact that C# can access the Win32 API directly. In the years since, I have occasionally needed to fall back on this feature. Unfortunately, it has not been easy to come up with exactly the right DllImport statements to make that happen.

That all changed when I found the Windows API reference for C#, VB.NET, and VB6. Just go to this site, search for an API, and copy the code into your project. No more guess work. I wish Microsoft would have collected all of this information in one place (such as MSDN). But this is a simple, nearly complete, no-frills reference.

Leave a Reply

You must be logged in to post a comment.