Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Remote Processes and Machine control of Windows NT based systems (2000/XP)

, 1 Apr 2012 CPOL
Control certain aspects of machines sitting remotely, without having to install and trigger an application on the remote machine.
// 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)

Share

About the Author

Prateek Kaul
Web Developer
India India
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141030.1 | Last Updated 1 Apr 2012
Article Copyright 2003 by Prateek Kaul
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid