Click here to Skip to main content
15,892,298 members
Articles / Desktop Programming / MFC

Control Center for Windows 2K and more extended

Rate me:
Please Sign up or sign in to vote.
4.55/5 (34 votes)
26 Jan 20046 min read 124.6K   1.5K   48  
Control Center for Windows 2K and more
#pragma once
#include "afxcmn.h"
#include "afxwin.h"


// CSystemStatus dialog

class CSystemStatus : public CPropertyPage
{
	DECLARE_DYNAMIC(CSystemStatus)
protected:
	CBackdoorClDlg* Papa;
	// the adapter info
	IP_ADAPTER_INFO* adapter;
	// total physical memory in MB
	DWORD m_TotMem;
	// total virtual memory
	DWORD m_TotVirtMem;

	// the textual memory indicator
	CStatic m_MemText;
	// the physical memory status progress bar
	CProgressCtrl m_MemStatus;
	// the virtual memory indicator
	CProgressCtrl m_MemVirt;
	// the physical memory status textual
	CStatic m_PhyMemStatus;
	// virtual memory status textual
	CStatic m_VirtMemStatus;
	// the currently logged on user
	CStatic m_CurUser;
// the ip part
	// the exixting ip addresses
	CListBox m_IPExisting;
	// the ip address to be added
	CIPAddressCtrl m_IPtoAdd;
	// the subnet mask to be added
	CIPAddressCtrl m_SubNettoAdd;

	// flush the RAM
	UINT FlushRAM(LPVOID param);
	// Get All the ip's of this system
	void GetIPAddress();

public:
	CSystemStatus();
	virtual ~CSystemStatus();

// Dialog Data
	enum { IDD = IDD_SYSSTATUS };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
	
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnBnClickedFreemem();
	afx_msg void OnBnClickedAddip();
	afx_msg void OnBnClickedRemoveip();
	virtual BOOL OnSetActive();
};

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
India India
This is just a beginning. I’m yet to decide the distance I have to travel.
I’m a 2nd year B. Tech. Student and I’ve started Visual programming about a year ago. Lets hope I can continue that for the rest of 2 and a half more years.

Comments and Discussions