27 references to NativeTypes
Microsoft.VisualBasic.Forms (27)
Microsoft\VisualBasic\Helpers\NativeMethods.vb (7)
14
Process As
NativeTypes
.LateInitSafeHandleZeroOrMinusOneIsInvalid,
36
lpProcessAttributes As
NativeTypes
.SECURITY_ATTRIBUTES,
37
lpThreadAttributes As
NativeTypes
.SECURITY_ATTRIBUTES,
42
lpStartupInfo As
NativeTypes
.STARTUPINFO,
43
lpProcessInformation As
NativeTypes
.PROCESS_INFORMATION) As Integer
52
Friend Sub GetStartupInfo(<[In](), Out()> lpStartupInfo As
NativeTypes
.STARTUPINFO)
86
hHandle As
NativeTypes
.LateInitSafeHandleZeroOrMinusOneIsInvalid,
Microsoft\VisualBasic\Interaction.vb (20)
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)
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)
157
windowHandle = NativeMethods.GetWindow(NativeMethods.GetDesktopWindow(),
NativeTypes
.GW_CHILD)
170
windowHandle = NativeMethods.GetWindow(windowHandle,
NativeTypes
.GW_HWNDNEXT)
175
windowHandle = NativeMethods.GetWindow(NativeMethods.GetDesktopWindow(),
NativeTypes
.GW_CHILD)
189
windowHandle = NativeMethods.GetWindow(windowHandle,
NativeTypes
.GW_HWNDNEXT)
302
Dim startupInfo As New
NativeTypes
.STARTUPINFO
303
Dim processInfo As New
NativeTypes
.PROCESS_INFORMATION
305
Dim safeProcessHandle As New
NativeTypes
.LateInitSafeHandleZeroOrMinusOneIsInvalid()
306
Dim safeThreadHandle As New
NativeTypes
.LateInitSafeHandleZeroOrMinusOneIsInvalid()
319
startupInfo.dwFlags =
NativeTypes
.STARTF_USESHOWWINDOW ' we want to specify the initial window style (minimized, etc) so set this bit.
328
ok = NativeMethods.CreateProcess(Nothing, PathName, Nothing, Nothing, False,
NativeTypes
.NORMAL_PRIORITY_CLASS, Nothing, Nothing, startupInfo, processInfo)
332
If processInfo.hProcess <> IntPtr.Zero AndAlso processInfo.hProcess <>
NativeTypes
.s_invalidHandle Then
335
If processInfo.hThread <> IntPtr.Zero AndAlso processInfo.hThread <>
NativeTypes
.s_invalidHandle Then