ShellExecute Screensaver Properties[SOLVED]

Started by
2 comments, last by levjs 18 years, 1 month ago
Hi, I'm trying to get my program to open a screensaver's configuration box. I'm trying to use ShellExecute with "-c" passed as the file argument, and it's not working. [sad] How would I do this? I really have no idea where to start. Thanks Levi [Edited by - levjs on March 17, 2006 10:34:02 AM]
Advertisement
Why is it not working? What is the error it is returning?
.
It isn't returning an error, it's just launching the screensaver in regular mode. I don't know why. Here's the line.

ShellExecute(NULL,"open","C:\\WINDOWS\\Screensaver.scr","/c","C:\\WINDOWS",SW_SHOWNORMAL);

I've also tried "-c" as the argument, and it still launches it in normal screensaver mode. I really need to figure this out! : )

Might I be able to use CreateProcess to do this?

Thanks
Levi
Hi,
I've figured it out. I used CreateProcess. Thanks
Levi

This topic is closed to new replies.

Advertisement