From 5f3fb989990843e0fc126c75389d2c85661fe545 Mon Sep 17 00:00:00 2001 From: JFronny <33260128+JFronny@users.noreply.github.com> Date: Mon, 25 May 2020 19:32:53 +0200 Subject: [PATCH] Why where imports broken? --- W32.Test/MainForm.cs | 8 ++++++-- W32.Test/Program.cs | 5 ++++- W32/DCDrawer/DCBuffered.cs | 6 +++++- W32/DCDrawer/DCUnbuffered.cs | 4 +++- W32/DCDrawer/IDCDrawer.cs | 5 ++++- W32/DeskMan.cs | 7 ++++++- W32/Forms/DataGridViewNumericUpDownCell.cs | 8 ++++++++ W32/Forms/DataGridViewNumericUpDownColumn.cs | 6 ++++++ W32/Forms/DataGridViewNumericUpDownEditingControl.cs | 6 ++++++ W32/Forms/Extensions.cs | 7 ++++++- W32/Forms/RotatingIndicator.cs | 7 ++++++- W32/Forms/SelectBox.cs | 6 +++++- W32/GenericExtensions.cs | 6 +++++- W32/Hooks/KeyboardHook.cs | 7 ++++++- W32/Hooks/KeyboardHookEventArgs.cs | 5 ++++- W32/Hooks/MouseHook.cs | 7 ++++++- W32/Hooks/MouseHookEventArgs.cs | 5 ++++- W32/KeyboardReader.cs | 3 ++- W32/Mouse.cs | 4 +++- W32/Native/RECT.cs | 4 +++- W32/Native/advapi32.cs | 5 ++++- W32/Native/gdi32.cs | 5 ++++- W32/Native/kernel32.cs | 5 ++++- W32/Native/ntdll.cs | 5 ++++- W32/Native/shell32.cs | 5 ++++- W32/Native/user32.cs | 6 +++++- W32/Power.cs | 3 ++- W32/Privileges.cs | 6 +++++- W32/ScreenMan.cs | 5 ++++- W32/Security.cs | 4 +++- W32/Time.cs | 3 ++- W32/Wnd32.cs | 11 ++++++++++- 32 files changed, 149 insertions(+), 30 deletions(-) diff --git a/W32.Test/MainForm.cs b/W32.Test/MainForm.cs index 8dbd9bd..af7be70 100644 --- a/W32.Test/MainForm.cs +++ b/W32.Test/MainForm.cs @@ -1,4 +1,8 @@ -using CC_Functions.W32.DCDrawer; +using System; +using System.Drawing; +using System.Linq; +using System.Windows.Forms; +using CC_Functions.W32.DCDrawer; using CC_Functions.W32.Forms; using CC_Functions.W32.Hooks; using static CC_Functions.W32.Power; @@ -22,7 +26,7 @@ namespace CC_Functions.W32.Test _mainF = this; _tmpWnd32Obj = Wnd32.FromForm(this); #if DEBUG - tmpWnd32_obj.MakeOverlay(); + _tmpWnd32Obj.Overlay = true; #endif set_up_box(power_mode_box, typeof(ShutdownMode)); set_up_box(power_reason_box, typeof(ShutdownReason)); diff --git a/W32.Test/Program.cs b/W32.Test/Program.cs index 156eea9..cc7f833 100644 --- a/W32.Test/Program.cs +++ b/W32.Test/Program.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.Test +using System; +using System.Windows.Forms; + +namespace CC_Functions.W32.Test { internal static class Program { diff --git a/W32/DCDrawer/DCBuffered.cs b/W32/DCDrawer/DCBuffered.cs index 1630eac..49c53d2 100644 --- a/W32/DCDrawer/DCBuffered.cs +++ b/W32/DCDrawer/DCBuffered.cs @@ -1,4 +1,8 @@ -namespace CC_Functions.W32.DCDrawer +using System; +using System.Drawing; +using System.Windows.Forms; + +namespace CC_Functions.W32.DCDrawer { public class DCBuffered : IDCDrawer { diff --git a/W32/DCDrawer/DCUnbuffered.cs b/W32/DCDrawer/DCUnbuffered.cs index a692aef..2010dd0 100644 --- a/W32/DCDrawer/DCUnbuffered.cs +++ b/W32/DCDrawer/DCUnbuffered.cs @@ -1,4 +1,6 @@ -using CC_Functions.W32.Native; +using System; +using System.Drawing; +using CC_Functions.W32.Native; namespace CC_Functions.W32.DCDrawer { diff --git a/W32/DCDrawer/IDCDrawer.cs b/W32/DCDrawer/IDCDrawer.cs index d312da0..d1788df 100644 --- a/W32/DCDrawer/IDCDrawer.cs +++ b/W32/DCDrawer/IDCDrawer.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.DCDrawer +using System; +using System.Drawing; + +namespace CC_Functions.W32.DCDrawer { public interface IDCDrawer : IDisposable { diff --git a/W32/DeskMan.cs b/W32/DeskMan.cs index 376680d..2f24071 100644 --- a/W32/DeskMan.cs +++ b/W32/DeskMan.cs @@ -1,5 +1,10 @@ -using CC_Functions.W32.DCDrawer; +using System; +using System.Drawing; +using System.Drawing.Imaging; +using System.IO; +using CC_Functions.W32.DCDrawer; using CC_Functions.W32.Native; +using Microsoft.Win32; namespace CC_Functions.W32 { diff --git a/W32/Forms/DataGridViewNumericUpDownCell.cs b/W32/Forms/DataGridViewNumericUpDownCell.cs index e0a0b7f..3a34bdc 100644 --- a/W32/Forms/DataGridViewNumericUpDownCell.cs +++ b/W32/Forms/DataGridViewNumericUpDownCell.cs @@ -1,3 +1,11 @@ +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Drawing; +using System.Globalization; +using System.Runtime.InteropServices; +using System.Windows.Forms; + namespace CC_Functions.W32.Forms { public class DataGridViewNumericUpDownCell : DataGridViewTextBoxCell diff --git a/W32/Forms/DataGridViewNumericUpDownColumn.cs b/W32/Forms/DataGridViewNumericUpDownColumn.cs index bb4219b..42a0a53 100644 --- a/W32/Forms/DataGridViewNumericUpDownColumn.cs +++ b/W32/Forms/DataGridViewNumericUpDownColumn.cs @@ -1,3 +1,9 @@ +using System; +using System.ComponentModel; +using System.Globalization; +using System.Text; +using System.Windows.Forms; + namespace CC_Functions.W32.Forms { /// diff --git a/W32/Forms/DataGridViewNumericUpDownEditingControl.cs b/W32/Forms/DataGridViewNumericUpDownEditingControl.cs index 1686055..838ab5c 100644 --- a/W32/Forms/DataGridViewNumericUpDownEditingControl.cs +++ b/W32/Forms/DataGridViewNumericUpDownEditingControl.cs @@ -1,3 +1,9 @@ +using System; +using System.Drawing; +using System.Globalization; +using System.Runtime.InteropServices; +using System.Windows.Forms; + namespace CC_Functions.W32.Forms { /// diff --git a/W32/Forms/Extensions.cs b/W32/Forms/Extensions.cs index 6829123..2249459 100644 --- a/W32/Forms/Extensions.cs +++ b/W32/Forms/Extensions.cs @@ -1,4 +1,9 @@ -namespace CC_Functions.W32.Forms +using System; +using System.Linq.Expressions; +using System.Reflection; +using System.Windows.Forms; + +namespace CC_Functions.W32.Forms { public delegate void SetPropertyDelegate(TCtl control, Expression> propexpr, TProp value) where TCtl : Control; diff --git a/W32/Forms/RotatingIndicator.cs b/W32/Forms/RotatingIndicator.cs index 4e3f127..5ecaf00 100644 --- a/W32/Forms/RotatingIndicator.cs +++ b/W32/Forms/RotatingIndicator.cs @@ -1,4 +1,9 @@ -using Timer = System.Timers.Timer; +using System; +using System.ComponentModel; +using System.Drawing; +using System.Drawing.Drawing2D; +using System.Windows.Forms; +using Timer = System.Timers.Timer; namespace CC_Functions.W32.Forms { diff --git a/W32/Forms/SelectBox.cs b/W32/Forms/SelectBox.cs index dea9315..17b1746 100644 --- a/W32/Forms/SelectBox.cs +++ b/W32/Forms/SelectBox.cs @@ -1,4 +1,8 @@ -namespace CC_Functions.W32.Forms +using System; +using System.Linq; +using System.Windows.Forms; + +namespace CC_Functions.W32.Forms { internal partial class SelectBox : Form { diff --git a/W32/GenericExtensions.cs b/W32/GenericExtensions.cs index 5813aaa..7cc836c 100644 --- a/W32/GenericExtensions.cs +++ b/W32/GenericExtensions.cs @@ -1,4 +1,8 @@ -namespace CC_Functions.W32 +using System; +using System.Diagnostics; +using System.Windows.Forms; + +namespace CC_Functions.W32 { public static class GenericExtensions { diff --git a/W32/Hooks/KeyboardHook.cs b/W32/Hooks/KeyboardHook.cs index e1984e8..7c17279 100644 --- a/W32/Hooks/KeyboardHook.cs +++ b/W32/Hooks/KeyboardHook.cs @@ -1,4 +1,9 @@ -using CC_Functions.W32.Native; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Runtime.InteropServices; +using System.Windows.Forms; +using CC_Functions.W32.Native; namespace CC_Functions.W32.Hooks { diff --git a/W32/Hooks/KeyboardHookEventArgs.cs b/W32/Hooks/KeyboardHookEventArgs.cs index c9305ad..cff559f 100644 --- a/W32/Hooks/KeyboardHookEventArgs.cs +++ b/W32/Hooks/KeyboardHookEventArgs.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.Hooks +using System; +using System.Windows.Forms; + +namespace CC_Functions.W32.Hooks { public sealed class KeyboardHookEventArgs : EventArgs { diff --git a/W32/Hooks/MouseHook.cs b/W32/Hooks/MouseHook.cs index 2b8b5ab..be75aee 100644 --- a/W32/Hooks/MouseHook.cs +++ b/W32/Hooks/MouseHook.cs @@ -1,4 +1,9 @@ -using CC_Functions.W32.Native; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Drawing; +using System.Runtime.InteropServices; +using CC_Functions.W32.Native; namespace CC_Functions.W32.Hooks { diff --git a/W32/Hooks/MouseHookEventArgs.cs b/W32/Hooks/MouseHookEventArgs.cs index fd66614..08a0e3c 100644 --- a/W32/Hooks/MouseHookEventArgs.cs +++ b/W32/Hooks/MouseHookEventArgs.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.Hooks +using System; +using System.Drawing; + +namespace CC_Functions.W32.Hooks { public class MouseHookEventArgs : EventArgs { diff --git a/W32/KeyboardReader.cs b/W32/KeyboardReader.cs index 2b180f3..2a4b4f8 100644 --- a/W32/KeyboardReader.cs +++ b/W32/KeyboardReader.cs @@ -1,4 +1,5 @@ -using CC_Functions.W32.Native; +using System.Windows.Forms; +using CC_Functions.W32.Native; namespace CC_Functions.W32 { diff --git a/W32/Mouse.cs b/W32/Mouse.cs index 3612a86..8e476f4 100644 --- a/W32/Mouse.cs +++ b/W32/Mouse.cs @@ -1,4 +1,6 @@ -using CC_Functions.W32.Native; +using System.Drawing; +using System.Windows.Forms; +using CC_Functions.W32.Native; namespace CC_Functions.W32 { diff --git a/W32/Native/RECT.cs b/W32/Native/RECT.cs index 23c5fac..90d6f45 100644 --- a/W32/Native/RECT.cs +++ b/W32/Native/RECT.cs @@ -1,4 +1,6 @@ -namespace CC_Functions.W32.Native +using System.Runtime.InteropServices; + +namespace CC_Functions.W32.Native { [StructLayout(LayoutKind.Sequential)] public struct RECT diff --git a/W32/Native/advapi32.cs b/W32/Native/advapi32.cs index cf29e88..24ba804 100644 --- a/W32/Native/advapi32.cs +++ b/W32/Native/advapi32.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.Native +using System; +using System.Runtime.InteropServices; + +namespace CC_Functions.W32.Native { internal static class advapi32 { diff --git a/W32/Native/gdi32.cs b/W32/Native/gdi32.cs index a34a18f..1de79a6 100644 --- a/W32/Native/gdi32.cs +++ b/W32/Native/gdi32.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.Native +using System; +using System.Runtime.InteropServices; + +namespace CC_Functions.W32.Native { internal static class gdi32 { diff --git a/W32/Native/kernel32.cs b/W32/Native/kernel32.cs index 5fe54c7..5b078ab 100644 --- a/W32/Native/kernel32.cs +++ b/W32/Native/kernel32.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.Native +using System; +using System.Runtime.InteropServices; + +namespace CC_Functions.W32.Native { internal static class kernel32 { diff --git a/W32/Native/ntdll.cs b/W32/Native/ntdll.cs index eefb190..1a8141e 100644 --- a/W32/Native/ntdll.cs +++ b/W32/Native/ntdll.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.Native +using System; +using System.Runtime.InteropServices; + +namespace CC_Functions.W32.Native { internal static class ntdll { diff --git a/W32/Native/shell32.cs b/W32/Native/shell32.cs index 10df960..3170ac6 100644 --- a/W32/Native/shell32.cs +++ b/W32/Native/shell32.cs @@ -1,4 +1,7 @@ -namespace CC_Functions.W32.Native +using System; +using System.Runtime.InteropServices; + +namespace CC_Functions.W32.Native { internal static class shell32 { diff --git a/W32/Native/user32.cs b/W32/Native/user32.cs index 48ab606..e24afd8 100644 --- a/W32/Native/user32.cs +++ b/W32/Native/user32.cs @@ -1,4 +1,8 @@ -namespace CC_Functions.W32.Native +using System; +using System.Runtime.InteropServices; +using System.Text; + +namespace CC_Functions.W32.Native { internal static class user32 { diff --git a/W32/Power.cs b/W32/Power.cs index c05f136..6643e2f 100644 --- a/W32/Power.cs +++ b/W32/Power.cs @@ -1,4 +1,5 @@ -using CC_Functions.W32.Native; +using System; +using CC_Functions.W32.Native; using static CC_Functions.W32.Privileges; namespace CC_Functions.W32 diff --git a/W32/Privileges.cs b/W32/Privileges.cs index fc76f3f..7dbe8b6 100644 --- a/W32/Privileges.cs +++ b/W32/Privileges.cs @@ -1,4 +1,8 @@ -using CC_Functions.W32.Native; +using System; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.InteropServices; +using CC_Functions.W32.Native; namespace CC_Functions.W32 { diff --git a/W32/ScreenMan.cs b/W32/ScreenMan.cs index 9304864..cf6dc50 100644 --- a/W32/ScreenMan.cs +++ b/W32/ScreenMan.cs @@ -1,4 +1,7 @@ -using CC_Functions.W32.DCDrawer; +using System; +using System.Drawing; +using System.Windows.Forms; +using CC_Functions.W32.DCDrawer; using CC_Functions.W32.Native; namespace CC_Functions.W32 diff --git a/W32/Security.cs b/W32/Security.cs index c07b7e4..bd5414d 100644 --- a/W32/Security.cs +++ b/W32/Security.cs @@ -1,4 +1,6 @@ -namespace CC_Functions.W32 +using System.Security.Principal; + +namespace CC_Functions.W32 { public static class MiscFunctions { diff --git a/W32/Time.cs b/W32/Time.cs index 688bc36..b6efb67 100644 --- a/W32/Time.cs +++ b/W32/Time.cs @@ -1,4 +1,5 @@ -using CC_Functions.W32.Native; +using System; +using CC_Functions.W32.Native; namespace CC_Functions.W32 { diff --git a/W32/Wnd32.cs b/W32/Wnd32.cs index ed82510..3f32b8c 100644 --- a/W32/Wnd32.cs +++ b/W32/Wnd32.cs @@ -1,4 +1,13 @@ -using CC_Functions.W32.Native; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Drawing; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Windows.Forms; +using CC_Functions.W32.Native; namespace CC_Functions.W32 {