Click here to Skip to main content
15,895,799 members
Articles / Desktop Programming / MFC

Process viewer

Rate me:
Please Sign up or sign in to vote.
4.94/5 (104 votes)
9 Mar 2008CPOL9 min read 457.5K   22K   294  
Lists out the details of running processes in a system, loaded drivers, loaded dlls, version of each dll and process, process times, command line, owner, priority, GDI resource usage, privileges, loaded symbols, window heirarchy, autostart app finding and more.
#ifndef _PROCESS_IO_COUNTERS_H_
#define _PROCESS_IO_COUNTERS_H_

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

class ProcessIOCounters  
{
    public:
	    ProcessIOCounters();
	    virtual ~ProcessIOCounters();

        const CString& GetReadOperationCount() const { return m_csReadOprCount; }
        CString& GetReadOperationCount() { return m_csReadOprCount; }

        const CString& GetWriteOperationCount() const { return m_csWriteOprCount; }
        CString& GetWriteOperationCount() { return m_csWriteOprCount; }

        const CString& GetOtherOperationCount() const { return m_csOtherOprCount; };
        CString& GetOtherOperationCount() { return m_csOtherOprCount; }

        const CString& GetReadTransferCount() const { return m_csReadTrnsCount; }
        CString& GetReadTransferCount() { return m_csReadTrnsCount; }

        const CString& GetWriteTransferCount() const { return m_csWriteTrnsCount; }
        CString& GetWriteTransferCount() { return m_csWriteTrnsCount; }

        const CString& GetOtherTransferCount() const { return m_csOtherTrnsCount; }
        CString& GetOtherTransferCount() { return m_csOtherTrnsCount; }

        bool GetProcessIoCounters( const Utils::AutoHandleMgr& ahmProcess_i );

    private:

        // Process io counters
        CString m_csReadOprCount;
        CString m_csWriteOprCount;
        CString m_csOtherOprCount;
        CString m_csReadTrnsCount;
        CString m_csWriteTrnsCount;
        CString m_csOtherTrnsCount;
};

#endif // _PROCESS_IO_COUNTERS_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
Software Developer Microsoft
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