How .NET puts a wrap around Win32 APIs

July 9, 2006

This post is for all the Win32 API crazy programmers who would like to put the same functionality in .NET applications. 

Here a article from the MSDN which is useful for every .NET developer. Theres something for everyone, from application developer to graphic developers. The article specifies a list of many Win32 apis which  are wrapped into managed .NET apis. The article is documented considering the .NET version 1.0 and 1.1.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/win32map.asp

The other work around is to use the Win32 apis as it is using the System.Runtime.InteropServices namescape which provides the DllImport, this can be used to directly make a call any Win32 api.

eg:

[DllImport(“user32.dll”)] Public Declare Function ReleaseCapture() as Integer

or

Public Declare Function ReleaseCapture() Lib “user32.dll” as Integer

-Bugs!

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: