15 references to PInvoke
Microsoft.VisualStudio.Extensibility.Testing.Xunit (15)
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Harness\GlobalServiceProvider.cs (2)
43
if (
PInvoke
.CoRegisterMessageFilter(null, out var oldMessageFilter) < 0)
53
PInvoke
.CoRegisterMessageFilter(oldMessageFilter, out _);
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Harness\IntegrationHelper.cs (2)
49
PInvoke
.GetRunningObjectTable(0, out var runningObjectTable);
51
PInvoke
.CreateBindCtx(0, out var bindContext);
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Harness\MessageFilterSafeHandle.cs (2)
24
if (
PInvoke
.CoRegisterMessageFilter(filter, out _oldFilter) != VSConstants.S_OK)
45
if (
PInvoke
.CoRegisterMessageFilter(_oldFilter, out _) == VSConstants.S_OK)
src\VisualStudio\IntegrationTest\Harness\XUnitShared\InProcess\VisualStudio_InProc.cs (9)
210
var activeWindow =
PInvoke
.GetLastActivePopup(window);
211
activeWindow =
PInvoke
.IsWindowVisible(activeWindow) ? activeWindow : window;
212
PInvoke
.SwitchToThisWindow(activeWindow, true);
214
if (!
PInvoke
.SetForegroundWindow(activeWindow))
216
if (!
PInvoke
.AllocConsole())
223
var consoleWindow =
PInvoke
.GetConsoleWindow();
229
if (!
PInvoke
.SetWindowPos(consoleWindow, hWndInsertAfter: HWND.Null, 0, 0, 0, 0, SET_WINDOW_POS_FLAGS.SWP_NOZORDER))
236
if (!
PInvoke
.FreeConsole())
242
if (!
PInvoke
.SetForegroundWindow(activeWindow))