I'm not sure if this is the best place to put this, but oh well....
I'm trying to create a program that shuts my computer down after a specified amount of time. I figured everything out, but I believe you have to add parameters when you launch shutdown.exe so that it actually shuts down ("/s" and "/f"). This is what I have so far:
This launches notepad.exe and other programs just fine, so I'm assuming I would need a parameter for it.
ShellExecute(NULL, NULL, "C:/Windows/System32/shutdown.exe", NULL, NULL, SW_SHOWNORMAL);
Does anyone know how to add parameters to shutdown.exe? Or a better way to do this?