Tyrrrz / CliWrap

Library for running command-line processes
MIT License
4.32k stars 264 forks source link

Add support for LoadUserProfile #162

Closed woofer4444 closed 2 years ago

woofer4444 commented 2 years ago

Details

In some very hard ways to reproduce I was coming across a return value of -1073741502, eventually I found a piece that said "long story short, use LoadUserProfile". Unfortunately this is not exposed in your api.

Tyrrrz commented 2 years ago

I need more context

woofer4444 commented 2 years ago

Im using cli wrap in a website running as a service account, the piece Im trying to run is looking at a user's registry. When the process runs, it crashes instantly with an error code of -1073741502. Using that number of I found something stack overflow which uses the base Process control, https://stackoverflow.com/a/2089989 and they said to use LoadUserProfile