Sign in to follow this  
levjs

ShellExecute Screensaver Properties[SOLVED]

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this