Skip to content

Commit 5ac4ecf

Browse files
committed
Change to internal visibility, addresses CA1401
1 parent 4d1f2db commit 5ac4ecf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Rubberduck.VBEEditor/WindowsApi/User32.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Rubberduck.VBEditor.WindowsApi
66
{
7-
public static class User32
7+
internal static class User32
88
{
99
#region WinEvents
1010

@@ -34,7 +34,7 @@ public static class User32
3434
/// <param name="processId">This is actually an out parameter in the API, but we don't care about it. Should always be IntPtr.Zero.</param>
3535
/// <returns>Unmanaged thread ID</returns>
3636
[DllImport("user32.dll")]
37-
public static extern uint GetWindowThreadProcessId(IntPtr hWnd, IntPtr processId);
37+
internal static extern uint GetWindowThreadProcessId(IntPtr hWnd, IntPtr processId);
3838

3939
/// <summary>
4040
/// Retrieves the identifier of the thread that created the specified window and, optionally,
@@ -45,7 +45,7 @@ public static class User32
4545
/// If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the variable; otherwise, it does not.</param>
4646
/// <returns>The return value is the identifier of the thread that created the window.</returns>
4747
[DllImport("user32.dll", SetLastError = true)]
48-
public static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);
48+
internal static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);
4949

5050
/// <summary>
5151
/// Retrieves a handle to the foreground window (the window with which the user is currently working).
@@ -54,15 +54,15 @@ public static class User32
5454
/// <returns>The return value is a handle to the foreground window.
5555
/// The foreground window can be NULL in certain circumstances, such as when a window is losing activation.</returns>
5656
[DllImport("user32.dll")]
57-
public static extern IntPtr GetForegroundWindow();
57+
internal static extern IntPtr GetForegroundWindow();
5858

5959
[DllImport("user32.dll")]
60-
public static extern IntPtr GetActiveWindow();
60+
internal static extern IntPtr GetActiveWindow();
6161

6262
[DllImport("user32.dll")]
63-
public static extern IntPtr GetFocus();
63+
internal static extern IntPtr GetFocus();
6464

65-
public const int MaxGetClassNameBufferSize = 255;
65+
internal const int MaxGetClassNameBufferSize = 255;
6666

6767
/// <summary>
6868
/// Gets the underlying class name for a window handle.
@@ -73,7 +73,7 @@ public static class User32
7373
/// <param name="nMaxCount">Buffer size in characters, including the null terminator.</param>
7474
/// <returns>The length of the returned class name (without the null terminator), zero on error.</returns>
7575
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
76-
public static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);
76+
internal static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);
7777

7878
/// <summary> Gets the parent window of this item. </summary>
7979
///

0 commit comments

Comments
 (0)