Click here to Skip to main content
15,893,381 members
Articles / Desktop Programming / MFC

Remote processes and machine control of Windows NT based systems (2000/XP)

Rate me:
Please Sign up or sign in to vote.
4.79/5 (19 votes)
1 Apr 2012CPOL5 min read 118K   4.1K   71  
Trigger/monitor/kill processes and shutdown/reboot machines remotely.
// RemoteLogonDlg.cpp : implementation file
//

#include "stdafx.h"
#include "RemoteAdmin.h"
#include "RemoteLogonDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRemoteLogonDlg dialog


CRemoteLogonDlg::CRemoteLogonDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CRemoteLogonDlg::IDD, pParent)
{
    m_strLogon.LoadString(IDS_DEFAULT_LOGON);
	//{{AFX_DATA_INIT(CRemoteLogonDlg)
    m_strPassword = _T("");
	//}}AFX_DATA_INIT
}


void CRemoteLogonDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRemoteLogonDlg)
	DDX_Text(pDX, IDC_LOGON, m_strLogon);
	DDX_Text(pDX, IDC_PASSWORD, m_strPassword);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRemoteLogonDlg, CDialog)
	//{{AFX_MSG_MAP(CRemoteLogonDlg)
	ON_WM_CANCELMODE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRemoteLogonDlg message handlers

BOOL CRemoteLogonDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CRemoteLogonDlg::OnCancelMode() 
{
	CDialog::OnCancelMode();
	
	// TODO: Add your message handler code here
	
}

void CRemoteLogonDlg::OnOK() 
{
	GetDlgItemText(IDC_REMOTEIP, m_strRemoteIP);
	
	CDialog::OnOK();
}

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions