Change casing
authorMiguel de Icaza <miguel@gnome.org>
Wed, 21 May 2003 00:13:40 +0000 (00:13 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 21 May 2003 00:13:40 +0000 (00:13 -0000)
svn path=/trunk/mcs/; revision=14746

mcs/class/System.Windows.Forms/System.Windows.Forms/win32functions.cs

index f91f76407b8f7f08ea6cedcb04dad06f57079bda..9c8019f8f04a72cb8e0841e31dc7b8d05bf0bdfa 100644 (file)
@@ -944,12 +944,12 @@ namespace System.Windows.Forms{
                         CharSet = CharSet.Auto)]
                internal static extern bool GetCursorPos (ref POINT lpPoint);
 
-               [DllImport ("Comdlg32.dll",
+               [DllImport ("comdlg32.dll",
                         CallingConvention = CallingConvention.StdCall, 
                         CharSet = CharSet.Ansi)]
                internal static extern bool GetOpenFileName ( ref OPENFILENAME lpofn );
 
-               [DllImport ("Comdlg32.dll",
+               [DllImport ("comdlg32.dll",
                         CallingConvention = CallingConvention.StdCall, 
                         CharSet = CharSet.Ansi)]
                internal static extern uint CommDlgExtendedError ( );
@@ -1104,5 +1104,25 @@ namespace System.Windows.Forms{
                        Win32.ReleaseDC ( hWnd, hDC );
                        return size;
                }
+
+               [DllImport ("libntdll.dll.so", EntryPoint="PROCESS_InitWine")]
+               extern static void PROCESS_InitWine (int argc, string [] args);
+
+               [DllImport ("libntdll.dll.so", EntryPoint="LoadLibraryA")]
+               extern static void NTDLL_LoadLibraryA (string s);
+               
+               // 
+               // Used to initialize the runtime
+               //
+               static Win32 ()
+               {
+                       string [] args = new string [1];
+                       args [0] = "mono";
+                       
+                       PROCESS_InitWine (0, args);
+                       NTDLL_LoadLibraryA ("kernel32.dll");
+                       NTDLL_LoadLibraryA ("user32.dll");
+                       NTDLL_LoadLibraryA ("comctl32.dll");
+               }
        }
 }