33 references to NativeMethods
Microsoft.VisualBasic.Forms (33)
Microsoft\VisualBasic\Devices\ComputerInfo.InternalMemoryStatus.vb (1)
54If Not NativeMethods.GlobalMemoryStatusEx(_memoryStatusEx) Then
Microsoft\VisualBasic\Helpers\NativeTypes.STARTUPINFO.vb (3)
63NativeMethods.CloseHandle(hStdInput) 68NativeMethods.CloseHandle(hStdOutput) 73NativeMethods.CloseHandle(hStdError)
Microsoft\VisualBasic\Helpers\NativeTypes.vb (1)
39Return NativeMethods.CloseHandle(handle) <> 0
Microsoft\VisualBasic\Interaction.vb (28)
11Imports NativeMethods = Microsoft.VisualBasic.CompilerServices.NativeMethods 26hwndOwned = NativeMethods.GetWindow(hwndApp, NativeTypes.GW_HWNDFIRST) 28If IntPtr.op_Equality(NativeMethods.GetWindow(hwndOwned, NativeTypes.GW_OWNER), hwndApp) Then 31hwndOwned = NativeMethods.GetWindow(hwndApp, NativeTypes.GW_HWNDFIRST) 36hwndOwned = NativeMethods.GetWindow(hwndOwned, NativeTypes.GW_HWNDNEXT) 57NativeMethods.AttachThreadInput(0, SafeNativeMethods.GetWindowThreadProcessId(hwndApp, dwDummy), 1) 60NativeMethods.SetForegroundWindow(hwndApp) 61NativeMethods.SetFocus(hwndApp) 63NativeMethods.AttachThreadInput(0, SafeNativeMethods.GetWindowThreadProcessId(hwndApp, dwDummy), 0) 108Dim windowHandle As IntPtr = NativeMethods.GetWindow(NativeMethods.GetDesktopWindow(), NativeTypes.GW_CHILD) 117windowHandle = NativeMethods.GetWindow(windowHandle, NativeTypes.GW_HWNDNEXT) 122windowHandle = NativeMethods.GetWindow(NativeMethods.GetDesktopWindow(), NativeTypes.GW_CHILD) 131windowHandle = NativeMethods.GetWindow(windowHandle, NativeTypes.GW_HWNDNEXT) 144Dim windowHandle As IntPtr = NativeMethods.FindWindow(Nothing, Title) 'see if we can find the window using an exact match on the title 157windowHandle = NativeMethods.GetWindow(NativeMethods.GetDesktopWindow(), NativeTypes.GW_CHILD) 160appTitleLength = NativeMethods.GetWindowText(windowHandle, appTitleBuilder, appTitleBuilder.Capacity) 170windowHandle = NativeMethods.GetWindow(windowHandle, NativeTypes.GW_HWNDNEXT) 175windowHandle = NativeMethods.GetWindow(NativeMethods.GetDesktopWindow(), NativeTypes.GW_CHILD) 179appTitleLength = NativeMethods.GetWindowText(windowHandle, appTitleBuilder, appTitleBuilder.Capacity) 189windowHandle = NativeMethods.GetWindow(windowHandle, NativeTypes.GW_HWNDNEXT) 317NativeMethods.GetStartupInfo(startupInfo) 328ok = NativeMethods.CreateProcess(Nothing, PathName, Nothing, Nothing, False, NativeTypes.NORMAL_PRIORITY_CLASS, Nothing, Nothing, startupInfo, processInfo) 344ok = NativeMethods.WaitForSingleObject(safeProcessHandle, Timeout) 354NativeMethods.WaitForInputIdle(safeProcessHandle, 10000)