wait for process to exit when using CreateProcessAsUser
<p>i'm using <strong>CreateProcessAsUser</strong> in c# to launch a process by a service
my service needs to waiting for the process to exit but i don't know how i can do it,
i don't want to use checking the process existion in processes list </p>
