Click here to Skip to main content
13,247,674 members (22,485 online)
Click here to Skip to main content


98 bookmarked
Posted 21 Aug 2004

System Dialogs

, , 21 Aug 2004
This article shows you a very simple way to show system dialogs like Internet Options, Add/Remove Programs, and etc.
// SystemDialog.h: interface for the CSystemDialog class.

//	Copyright : A. Riazi 2004
//	Email
//	This code may be used in compiled form in any way you desire. This
//	file may be redistributed unmodified by any means PROVIDING it is 
//	not sold for profit without the authors written consent, and 
//	providing that this notice and the authors name is included.
//	This file is provided 'as is' with no expressed or implied warranty.
//	The author accepts no liability if it causes any damage to your computer.
//	Do expect bugs.
//	Please let me know of any bugs/mods/improvements.
//	and I will try to fix/incorporate them into this file.
//	Enjoy!
//	Description : Show various system dialogs like control panel applets, ...


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define SD_FORMAT				1
#define SD_DATE_TIME			4
#define SD_DISPLAY				5
#define SD_MODEM				6
#define SD_MULTIMEDIA			7
#define SD_MOUSE				8
#define SD_NETWORK				9
#define SD_PASSWORD				10
#define SD_SYSTEM				11
#define SD_SOUNDS				13
#define SD_KEYBOARD				15

typedef struct tagSystemDialog
	int iSystemDialogID;
	TCHAR cDllName[100];
	char cFuncName[256];
	TCHAR cCommand[100];

} SystemDialog;

class CSystemDialog  
	void DoModal(int iDialogID, HWND hParent);
	virtual ~CSystemDialog();

#endif // _SYSTEM_DIALOGS_H_

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Authors

A. Riazi
CEO Misbah3Com
Iran (Islamic Republic of) Iran (Islamic Republic of)
I was born in Shiraz, a very beautiful famous city in Iran. I started programming when I was 12 years old with GWBASIC. Since now, I worked with various programming languages from Basic, Foxpro, C/C++, Visual Basic, Pascal to MATLAB and now Visual C++.
I graduated from Iran University of Science & Technology in Communication Eng., and now work as a system programmer for a telecommunication industry.
I wrote several programs and drivers for Synthesizers, Power Amplifiers, GPIB, GPS devices, Radio cards, Data Acqusition cards and so many related devices.
I'm author of several books like Learning C (primary and advanced), Learning Visual Basic, API application for VB, Teach Yourself Object Oriented Programming (OOP) and etc.
I'm winner of January, May, August 2003 and April 2005 best article of month competetion, my articles are:

You can see list of my articles, by clicking here

Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171114.1 | Last Updated 22 Aug 2004
Article Copyright 2004 by A. Riazi, Shafiee
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid