Click here to Skip to main content
15,892,643 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.
#ifndef MAINFRAME_H
#define MAINFRAME_H

#include <afxext.h>

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

class CRemoteAdminView;

class CMainFrame : public CFrameWnd
{
	DECLARE_DYNCREATE(CMainFrame)
    DECLARE_MESSAGE_MAP()
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void ActivateFrame(int nCmdShow = -1);
	//}}AFX_VIRTUAL

    afx_msg void OnAddMachine();
	afx_msg void OnDeleteMachine();
	
	virtual ~CMainFrame();
	CRemoteAdminView* GetRightPane();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  
	CMainFrame(); // create from serialization only

	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
	CReBar      m_wndReBar;
    BOOL        m_bWindowOnTop;
	

    // Commented by Prateek Kaul on May 21, 2003
    // Currently no dialog bar required
	//CDialogBar  m_wndDlgBar;
    CSplitterWnd m_wndSplitter;

	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClose();
	afx_msg void OnSettingsTimers();
	afx_msg void OnWindowAlwaysOnTop();
    afx_msg void OnUpdateWindowAlwaysOnTop(CCmdUI* pCmdUI);
    afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
	//}}AFX_MSG
	afx_msg void OnViewStyle(UINT nCommandID);
};

#endif // MAINFRAME_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.

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