1. Compile the above code as 'ss.exe'
2. Right click on the exe, select 'Create Shortcut'
3. Right click the shortcut, select 'Properties'.
4. Add <space>/s to the end of the Target line.
5. Save, and run the shortcut.
This is what Windows does when it runs a screensaver - it sends '/s' as the commandline, or '/c' if the user has chosen to config.
Of course for Windows to recongnise and handle it properly it needs to be renamed as ss.scr, and doesn't need the shortcut, that's just for this test.
2. Right click on the exe, select 'Create Shortcut'
3. Right click the shortcut, select 'Properties'.
4. Add <space>/s to the end of the Target line.
5. Save, and run the shortcut.
This is what Windows does when it runs a screensaver - it sends '/s' as the commandline, or '/c' if the user has chosen to config.
Of course for Windows to recongnise and handle it properly it needs to be renamed as ss.scr, and doesn't need the shortcut, that's just for this test.