Frodolon
❔ Using STARTUPINFOEXW on PInvoke.CreateProcess - how to move from ref / out to pointer?
Here's my code + the output: https://gist.github.com/macbrayne/8bf4c2cee0d5223849277d4ae0a0076d
17 replies
❔ Using STARTUPINFOEXW on PInvoke.CreateProcess - how to move from ref / out to pointer?
Hmm, CreateProcess gives error 87 - The Parameter is Incorrect - the reason I'm even trying to do all this is that I'm trying to reimplement https://scorpiosoftware.net/2019/01/15/fun-with-appcontainers/ in C# to play around with AppContainers...
17 replies
❔ Using STARTUPINFOEXW on PInvoke.CreateProcess - how to move from ref / out to pointer?
Ah, got it working:
PInvoke.CreateProcess(null, cmdLine, null, null, false, PROCESS_CREATION_FLAGS.EXTENDED_STARTUPINFO_PRESENT, null, null, (STARTUPINFOW*)&info, procInfoPtr);
17 replies
❔ Using STARTUPINFOEXW on PInvoke.CreateProcess - how to move from ref / out to pointer?
I already had another string
Really, the main problem is Visual Studio displaying the error messages for the version using
ref
s etc. making the error messages utterly useless17 replies