4
4
5
5
namespace Rubberduck . VBEditor . WindowsApi
6
6
{
7
- public static class User32
7
+ internal static class User32
8
8
{
9
9
#region WinEvents
10
10
@@ -34,7 +34,7 @@ public static class User32
34
34
/// <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>
35
35
/// <returns>Unmanaged thread ID</returns>
36
36
[ DllImport ( "user32.dll" ) ]
37
- public static extern uint GetWindowThreadProcessId ( IntPtr hWnd , IntPtr processId ) ;
37
+ internal static extern uint GetWindowThreadProcessId ( IntPtr hWnd , IntPtr processId ) ;
38
38
39
39
/// <summary>
40
40
/// Retrieves the identifier of the thread that created the specified window and, optionally,
@@ -45,7 +45,7 @@ public static class User32
45
45
/// If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the variable; otherwise, it does not.</param>
46
46
/// <returns>The return value is the identifier of the thread that created the window.</returns>
47
47
[ 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 ) ;
49
49
50
50
/// <summary>
51
51
/// Retrieves a handle to the foreground window (the window with which the user is currently working).
@@ -54,15 +54,15 @@ public static class User32
54
54
/// <returns>The return value is a handle to the foreground window.
55
55
/// The foreground window can be NULL in certain circumstances, such as when a window is losing activation.</returns>
56
56
[ DllImport ( "user32.dll" ) ]
57
- public static extern IntPtr GetForegroundWindow ( ) ;
57
+ internal static extern IntPtr GetForegroundWindow ( ) ;
58
58
59
59
[ DllImport ( "user32.dll" ) ]
60
- public static extern IntPtr GetActiveWindow ( ) ;
60
+ internal static extern IntPtr GetActiveWindow ( ) ;
61
61
62
62
[ DllImport ( "user32.dll" ) ]
63
- public static extern IntPtr GetFocus ( ) ;
63
+ internal static extern IntPtr GetFocus ( ) ;
64
64
65
- public const int MaxGetClassNameBufferSize = 255 ;
65
+ internal const int MaxGetClassNameBufferSize = 255 ;
66
66
67
67
/// <summary>
68
68
/// Gets the underlying class name for a window handle.
@@ -73,7 +73,7 @@ public static class User32
73
73
/// <param name="nMaxCount">Buffer size in characters, including the null terminator.</param>
74
74
/// <returns>The length of the returned class name (without the null terminator), zero on error.</returns>
75
75
[ 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 ) ;
77
77
78
78
/// <summary> Gets the parent window of this item. </summary>
79
79
///
0 commit comments