murrayju / CreateProcessAsUser

Creates a process in a different Windows session
MIT License
369 stars 114 forks source link

Change the dwFlags of STARTUPINFO #34

Closed KamenRiderKuuga closed 10 months ago

KamenRiderKuuga commented 3 years ago

Nothing happened after I adjusted the wShowWindow property to SW_MINIMIZE, and I found something description of wShowWindow property in MSDN:

If dwFlags specifies STARTF_USESHOWWINDOW, this member can be any of the values that can be specified in the nCmdShow parameter for the ShowWindow function, except for SW_SHOWDEFAULT. Otherwise, this member is ignored.

https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa