PInvoke.CreateProcess using a STARTUPINFOEXW instead of a STARTUPINFOW at argument 9 (in info).Span<char> cmdLine = stackalloc char[execPath.Length]; and my STARTUPINFOEXW info = new STARTUPINFOEXW() using pointers or replacing out var with pointers