How to Spawn Windows Process as Alternate User

Is there a way to spawn a Windows proces as a user other than the current user? On unix there is uid? Essentially something wrapping the CreateProcessAsUserA function.

There's winapi::um::processthreadsapi::CreateProcessAsUserW - Rust

But I don't know if a safe wrapper exists

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.