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