32 references to NativeMethods
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (32)
InProcess\InputInProcess.cs (5)
133var horizontalResolution = NativeMethods.GetSystemMetrics(NativeMethods.SM_CXSCREEN); 134var verticalResolution = NativeMethods.GetSystemMetrics(NativeMethods.SM_CYSCREEN); 140var actualPoint = NativeMethods.GetCursorPos();
IntegrationHelper.cs (27)
73foregroundWindow = NativeMethods.GetForegroundWindow(); 91if ((NativeMethods.GetParent(topLevelWindow) == parentWindow) || 92(NativeMethods.GetWindow(topLevelWindow, NativeMethods.GW_OWNER) == parentWindow) || 93(NativeMethods.GetAncestor(topLevelWindow, NativeMethods.GA_PARENT) == parentWindow)) 123var titleLength = NativeMethods.SendMessage(window, NativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero); 132NativeMethods.SendMessage(window, NativeMethods.WM_GETTEXT, (IntPtr)(title.Capacity), title); 140var enumFunc = new NativeMethods.WNDENUMPROC((hWnd, lParam) => 146var success = NativeMethods.EnumWindows(enumFunc, IntPtr.Zero); 181var activeWindow = NativeMethods.GetLastActivePopup(window); 182activeWindow = NativeMethods.IsWindowVisible(activeWindow) ? activeWindow : window; 183NativeMethods.SwitchToThisWindow(activeWindow, true); 185if (!NativeMethods.SetForegroundWindow(activeWindow)) 187if (!NativeMethods.AllocConsole()) 194var consoleWindow = NativeMethods.GetConsoleWindow(); 200if (!NativeMethods.SetWindowPos(consoleWindow, IntPtr.Zero, 0, 0, 0, 0, NativeMethods.SWP_NOZORDER)) 207if (!NativeMethods.FreeConsole()) 213if (!NativeMethods.SetForegroundWindow(activeWindow)) 222public static void SendInput(NativeMethods.INPUT[] inputs) 226var eventsInserted = NativeMethods.SendInput((uint)inputs.Length, inputs, NativeMethods.SizeOf_INPUT); 256NativeMethods.GetRunningObjectTable(0, out var runningObjectTable); 258NativeMethods.CreateBindCtx(0, out var bindContext);