Fix some resharper warnings and errors

This commit is contained in:
Flamefire committed 2014-12-02 21:59:33 +01:00
1 parent 167202e8ff
commit cd59b82b7b
35 files changed
+82 -174

No files matched your search

+2 -18
View File
@@ -16,7 +16,6 @@
#endregion
using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace Vocaluxe
@@ -24,29 +23,14 @@ namespace Vocaluxe
static class COSFunctions
{
#if WIN
private static bool _DefaultDllDirSet;
private static bool _UsePath;
private static bool _UseSetDllDir;
private static class CWindowsFunctions
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern void AddDllDirectory(string lpPathName);
[DllImport("kernel32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern void SetDllDirectory(string lpPathName);
// ReSharper disable MemberHidesStaticFromOuterClass
[DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SetForegroundWindow(IntPtr hWnd);
[DllImport("kernel32.dll", CallingConvention = CallingConvention.StdCall)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SetDefaultDllDirectories(int directoryFlags);
// ReSharper disable InconsistentNaming
public const int LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000;
// ReSharper restore InconsistentNaming
// ReSharper restore MemberHidesStaticFromOuterClass
}
#endif