C# calling a DLL API, in this case, MessageBox in user32.dll


/ Published in: C#
Save to your folder(s)

[1] Add 'using System.Runtime.InteropServices;'
[2] Add DllImport and function declaration
[3] call function.

This example involves passing strings and passing IntPtr.

URL: http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute.aspx

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.