Win32 API has thousands of utlitity fuctions which will do a lot of range of tasks. From C# manage code, we can call these native functions. Now Silverlight 5 also started to support calling native code from manged code.
This support if only for OOB application having elevated trust.
Suppose, one of the function in Win32 API is, "MessageBox". We can call this function like below.
Declare the function like below
[DllImport("User32.dll")] public static extern int MessageBox(int ParentWindow, string MsgText, string MsgTitle, int type);[DllImport("User32.dll")]
Now call this function like below..
MessageBox(0, "Win32 Message Box", "PInvoke Support", 0);