I have made a simple screen saver, and I want to respond to the /p parameter to show a preview of the screen saver in the small moniter on the Display properties window. I know that the second parameter is the handle to a canvas, or something, so windows runs the screen saver with some thing like this: ScreenSaver.exe /p 3344 I can make the application create a form if the first parameter is /p, and then draw on the computer screen by using the getdc(...) function. So when you select the screen saver, windows executes it and the drawing begins on the small moniter. But when it is executed, the display window is deactivated and the focus goes to the screen saver form. How can I stop this? Also, when you now select a different screen saver, my one is still running, and conflicts with the other one that is drawing on the same canvas.
Any help on this matter will be useful.