Click here to Skip to main content
15,892,927 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 GLOBALMFCHELPERFUNC_H
#define GLOBALMFCHELPERFUNC_H

class CRemoteAdminDoc;
class CRemoteAdminView;
class CMachineView;
class CMainFrame;
class CRemoteAdminApp;

namespace MFC_DocView
{
	CRemoteAdminDoc*  GetAppDocument();     // Get the application's document class pointer derived from CDocument
	CRemoteAdminView* GetRemoteAdminView(); // Get the pointer to the view in which processes are shown. 
	CMachineView*     GetMachineView();     // Get the pointer to the tree view in which connected machines are visible  
	CMainFrame*       GetMainFrame();       // Get the pointer to the main outer window  
	CRemoteAdminApp*   GetApp();			// Helps in removing the casting problem while using AfxGetApp()
}

#endif // GLOBALMFCHELPERFUNC_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