1 instantiation of HWND
Microsoft.VisualStudio.Extensibility.Testing.Xunit (1)
Windows.Win32.HWND.g.cs (1)
36
public static explicit operator HWND(IntPtr value) => new
HWND
(value);
26 references to HWND
Microsoft.VisualStudio.Extensibility.Testing.Xunit (26)
src\VisualStudio\IntegrationTest\Harness\XUnitShared\InProcess\VisualStudio_InProc.cs (7)
72
var
activeVisualStudioWindow = (
HWND
)activeWindow;
83
activeVisualStudioWindow = (
HWND
)mainWindow;
208
private static bool TrySetForegroundWindow(
HWND
window)
210
var
activeWindow = PInvoke.GetLastActivePopup(window);
223
var
consoleWindow = PInvoke.GetConsoleWindow();
229
if (!PInvoke.SetWindowPos(consoleWindow, hWndInsertAfter:
HWND
.Null, 0, 0, 0, 0, SET_WINDOW_POS_FLAGS.SWP_NOZORDER))
Windows.Win32.HWND.g.cs (11)
24
: IEquatable<
HWND
>
30
internal static
HWND
Null => default;
34
public static implicit operator IntPtr(
HWND
value) => value.Value;
36
public static explicit operator
HWND
(IntPtr value) => new HWND(value);
38
public static bool operator ==(
HWND
left,
HWND
right) => left.Value == right.Value;
40
public static bool operator !=(
HWND
left,
HWND
right) => !(left == right);
42
public bool Equals(
HWND
other) => this.Value == other.Value;
44
public override bool Equals(object obj) => obj is
HWND
other && this.Equals(other);
50
public static implicit operator HANDLE(
HWND
value) => new HANDLE(value.Value);
Windows.Win32.PInvoke.KERNEL32.dll.g.cs (1)
78
internal static extern winmdroot.Foundation.
HWND
GetConsoleWindow();
Windows.Win32.PInvoke.USER32.dll.g.cs (7)
39
internal static extern winmdroot.Foundation.
HWND
GetLastActivePopup(winmdroot.Foundation.
HWND
hWnd);
55
internal static extern winmdroot.Foundation.BOOL IsWindowVisible(winmdroot.Foundation.
HWND
hWnd);
71
internal static extern winmdroot.Foundation.BOOL SetForegroundWindow(winmdroot.Foundation.
HWND
hWnd);
106
internal static extern winmdroot.Foundation.BOOL SetWindowPos(winmdroot.Foundation.
HWND
hWnd, winmdroot.Foundation.
HWND
hWndInsertAfter, int X, int Y, int cx, int cy, winmdroot.UI.WindowsAndMessaging.SET_WINDOW_POS_FLAGS uFlags);
123
internal static extern void SwitchToThisWindow(winmdroot.Foundation.
HWND
hwnd, winmdroot.Foundation.BOOL fUnknown);