From ba4ca57d603b18054b984bfe5a47c2e73543bdad Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sun, 23 Mar 2014 21:48:04 +0100 Subject: [PATCH] Fix wrong dll import --- Vocaluxe/COSFunctions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/COSFunctions.cs b/Vocaluxe/COSFunctions.cs index 472956c6..82dd2eea 100644 --- a/Vocaluxe/COSFunctions.cs +++ b/Vocaluxe/COSFunctions.cs @@ -22,7 +22,7 @@ namespace Vocaluxe [return: MarshalAs(UnmanagedType.Bool)] public static extern bool SetForegroundWindow(IntPtr hWnd); - [DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)] + [DllImport("kernel32.dll", CallingConvention = CallingConvention.StdCall)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool SetDefaultDllDirectories(int directoryFlags);