making screensaver from winapi code

Please help if you can: I have coded complete aplication (base code from nehe.gamedev.net) and I want to change it to screensaver … don’t want to use screensaverproc(), because of complete changing some parts of code… I know that screensavers are EXE files that are configured by /c and runned /s parameters … what else? Some sort of windows style or what I need to put in code so windows will recognize it as screensaver?

Change filetype from .exe to .scr. Support command line /s (start in screensaver mode)and /c (config dialog). And make window full screen and on top using similar to:

CreateEx(WS_EX_TOPMOST,
pszClassName,
“”,
WS_POPUP | WS_VISIBLE,
0, 0,
::GetSystemMetrics(SM_CXSCREEN),
::GetSystemMetrics(SM_CYSCREEN),
NULL,
NULL);