Click here to Skip to main content
12,354,543 members (59,824 online)
Click here to Skip to main content

Tagged as

Stats

131.7K views
8.5K downloads
104 bookmarked
Posted

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.
#ifndef PROGRESSDLG_H
#define PROGRESSDLG_H

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

const UINT TIMER_STEP = 1;

class CRemoteAdminDoc;
class CProgressWndThread;

class CProgressDlg : public CDialog
{
    DECLARE_DYNCREATE(CProgressDlg)
public:
	CProgressDlg(CWnd* pParent = NULL);   // standard constructor

    void SetProgressText(CString strDlgProgressTxt);
	void SetDlgTitle(CString strDlgTitle);
    void IncrementProgressBar();
	void DestroyProgressBarAndExitThread();
    BOOL Create();
	void SetDocument(CRemoteAdminDoc* pRemoteAdminDoc);
	
// Dialog Data
	//{{AFX_DATA(CProgressDlg)
	enum { IDD = IDD_PROGRESS };
    
	// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProgressDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CProgressDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG

	CRemoteAdminDoc* m_pRemoteAdminDoc;

	DECLARE_MESSAGE_MAP()
};

inline void CProgressDlg::SetDocument(CRemoteAdminDoc* pRemoteAdminDoc)
{
	ASSERT(pRemoteAdminDoc != NULL);

	m_pRemoteAdminDoc = pRemoteAdminDoc;
}

#endif // PROGRESSDLG_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)

Share

About the Author

Prateek Kaul
Web Developer
India India
No Biography provided

You may also be interested in...

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