23 references to NativeMethods
Microsoft.Build (22)
BackEnd\Components\Communications\NodeLauncher.cs (21)
13
using BackendNativeMethods = Microsoft.Build.BackEnd.
NativeMethods
;
62
BackendNativeMethods
.STARTUP_INFO startInfo = new();
63
startInfo.cb = Marshal.SizeOf<
BackendNativeMethods
.STARTUP_INFO>();
70
creationFlags =
BackendNativeMethods
.NORMALPRIORITYCLASS;
80
startInfo.hStdError =
BackendNativeMethods
.InvalidHandle;
81
startInfo.hStdInput =
BackendNativeMethods
.InvalidHandle;
82
startInfo.hStdOutput =
BackendNativeMethods
.InvalidHandle;
83
startInfo.dwFlags =
BackendNativeMethods
.STARTFUSESTDHANDLES;
84
creationFlags |=
BackendNativeMethods
.CREATENOWINDOW;
89
creationFlags |=
BackendNativeMethods
.CREATE_NEW_CONSOLE;
114
processStartInfo.CreateNoWindow = (creationFlags |
BackendNativeMethods
.CREATENOWINDOW) ==
BackendNativeMethods
.CREATENOWINDOW;
144
BackendNativeMethods
.PROCESS_INFORMATION processInfo = new();
145
BackendNativeMethods
.SECURITY_ATTRIBUTES processSecurityAttributes = new();
146
BackendNativeMethods
.SECURITY_ATTRIBUTES threadSecurityAttributes = new();
147
processSecurityAttributes.nLength = Marshal.SizeOf<
BackendNativeMethods
.SECURITY_ATTRIBUTES>();
148
threadSecurityAttributes.nLength = Marshal.SizeOf<
BackendNativeMethods
.SECURITY_ATTRIBUTES>();
150
bool result =
BackendNativeMethods
.CreateProcess(
157
BackendNativeMethods
.NullPtr,
179
if (processInfo.hProcess != IntPtr.Zero && processInfo.hProcess !=
NativeMethods
.InvalidHandle)
184
if (processInfo.hThread != IntPtr.Zero && processInfo.hThread !=
NativeMethods
.InvalidHandle)
Logging\InProcessConsoleConfiguration.cs (1)
83
if (stdHandle !=
NativeMethods
.InvalidHandle)
Microsoft.Build.Engine.UnitTests (1)
ConsoleLogger_Tests.cs (1)
2464
if (stdHandle != Microsoft.Build.BackEnd.
NativeMethods
.InvalidHandle)