In mcs:
[mono.git] / mcs / tests / test-50.cs
index bbc24c0e5fc64d60f0cbf68c0ae462b4c621e6b5..a05a554ec3ddd9f248b9d3b177d3cc781f9f2c2d 100644 (file)
@@ -1,15 +1,15 @@
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-public class Blah {\r
-\r
-       [DllImport ("user32")]\r
-       public static extern int MessageBox (int hWnd, string pText, string pCaption, int uType);\r
-\r
-       public static int Main ()\r
-       {\r
-               MessageBox (0, "Hello from Mono !", "PInvoke Test", 0);\r
-\r
-               return 0;\r
-       }\r
-}\r
+using System;
+using System.Runtime.InteropServices;
+
+public class Blah {
+
+       [DllImport ("user32", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Auto)]
+       public static extern int MessageBox (int hWnd, string pText, string pCaption, int uType);
+
+       public static int Main ()
+       {
+               MessageBox (0, "Hello from Mono !", "PInvoke Test", 0);
+
+               return 0;
+       }
+}