Hey, I want to make my program to restart the pc and then play sound.
My Current program is not playing sound after a restart, i have added the program to Startup Folder but it still does not work, someone tell me that the program will not continue after a restart, so how can i do this ?
I want to do like this.
int main()
{
system("c:\\windows\\system32\\shutdown /r /t 10 \n\n");
while (true)
{
PlaySound(*pathtosound*, NULL, SND_SYNC);
}
return 0;
}
What I have tried:
I already tried to add this to StartUp Folder but still not working.