How would I go about starting a Run Dialog window and having my application input a command to start Steam?
I would like my application to open the standard windows run dialog pre-filled with input.
This is what I have tried:
HINSTANCE result;
result = ShellExecute(NULL, "open", "rundll32.exe", "steam://connect/192.69.96.168:27023", NULL, SW_SHOWDEFAULT);
I don't really understand the parameters for ShellExecute and would like some clarification.
UPDATE
I think I have gotten it to work:
HINSTANCE result;
result = ShellExecute( // WinExec is obsolete.
0, // hwnd
"open", // operation/verb.
"steam://connect/192.69.96.168:27023", // executable.
"", // parameters.
NULL, // directory
SW_SHOW); // how to be displayed