Closed RoFred2 closed 3 months ago
As the docs for CreateProcess
says:
[in] lpStartupInfo
A pointer to a STARTUPINFO or STARTUPINFOEX structure.
In other words you can use either structure with CreateProcessW
. You just might need to cast the pointer.
Also note the EntryPoint = "CreateProcess"
on your import. Closing this for now as there's no work to be done but feel free to keep the discussion going.
Suggestion
While attempting to port a reverse shell client made in C# to Rust, I came across an issue. The windows crate doesn't seem to have any function called CreateProcessEx, or similar, despite STARTUPINFOEXW existing.
The function is imported as such in C#: