Click here to Skip to main content
15,885,365 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 117.8K   4.1K   71  
Trigger/monitor/kill processes and shutdown/reboot machines remotely.
// Global helper functions

#ifndef GLOBALHELPERFUNC_H
#define GLOBALHELPERFUNC_H

#include <afxwin.h>

namespace ErrorHandling
{
	void    PopError(DWORD dwError);
	void    PopLastError();
	CString FormatError(DWORD dwError);
	CString FormatLastError();
	
	// Converts a string table ID to an application speific error message
	CString ConvertStringTableIDToErrorMsg(CString strMachineIP, UINT iStringTableID);
}

namespace ProcessHandling
{
	void LaunchApp(CString strAppPath, CString strCommandLine);
}



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