[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Screen Saver Setting Dialog

Posted on 1999-11-18
2
Medium Priority
?
168 Views
Last Modified: 2013-11-20
I would like to know how to get the settings dialog for the current screen saver to come up. I am programming in Visual C++ 6.0 under Windows 98/95. I can get the screen saver to start, but would like to be able to bring up the settings dialog upon demand. Your help would be greatly appreciated.

Thanks,
Mike
0
Comment
Question by:junk_mail
2 Comments
 
LVL 1

Accepted Solution

by:
mjswart earned 200 total points
ID: 2217236
I found this at http://www.wischik.com/scr/howtoscr.html

// Code to launch configuration dialog
      char scr[MAX_PATH];
      DWORD res=GetPrivateProfileString("boot","SCRNSAVE.EXE","",scr,MAX_PATH,"system.ini");
      STARTUPINFO si; PROCESS_INFORMATION pi;
      ZeroMemory(&si,sizeof(si)); ZeroMemory(&pi,sizeof(pi));
      si.cb=sizeof(si);
      char c[MAX_PATH]; wsprintf(c,"\"%s\" /c",scr);
      CreateProcess(scr,c,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi);

Mike
0
 

Author Comment

by:junk_mail
ID: 2217689
Thanks. I had most of it. I was using ShellExecute instead of CreateProcess.

Have a great Day,
Mike
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question