Click here to Skip to main content
15,891,423 members
Articles / Desktop Programming / MFC

Control Center for Windows 2K and more extended

Rate me:
Please Sign up or sign in to vote.
4.55/5 (34 votes)
26 Jan 20046 min read 124.5K   1.5K   48  
Control Center for Windows 2K and more
// BackdoorCl.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "BackdoorCl.h"
#include "BackdoorClDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CBackdoorClApp

BEGIN_MESSAGE_MAP(CBackdoorClApp, CWinApp)
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()


// CBackdoorClApp construction

CBackdoorClApp::CBackdoorClApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}


// The one and only CBackdoorClApp object

CBackdoorClApp theApp;


// CBackdoorClApp initialization

BOOL CBackdoorClApp::InitInstance()
{
	// InitCommonControls() is required on Windows XP if an application
	// manifest specifies use of ComCtl32.dll version 6 or later to enable
	// visual styles.  Otherwise, any window creation will fail.
	InitCommonControls();

	CWinApp::InitInstance();

	if (!AfxSocketInit())
	{
		AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
		return FALSE;
	}

	AfxEnableControlContainer();

	// Make the Registry Key
	SetRegistryKey("Redeemer");

	CBackdoorClDlg dlg;
	m_pMainWnd = &dlg;
	
	INT_PTR nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with Cancel
	}

	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
India India
This is just a beginning. I’m yet to decide the distance I have to travel.
I’m a 2nd year B. Tech. Student and I’ve started Visual programming about a year ago. Lets hope I can continue that for the rest of 2 and a half more years.

Comments and Discussions