mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
35 lines
695 B
C
35 lines
695 B
C
|
#ifndef __Perfcntr_h__
|
||
|
#define __Perfcntr_h__
|
||
|
|
||
|
class CPerfCounter
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
CPerfCounter( PTSTR const pszName, DWORD type,
|
||
|
PBYTE const pData, DWORD cbData );
|
||
|
|
||
|
~CPerfCounter( void );
|
||
|
|
||
|
PTSTR GetName( void ) { return m_pszName; }
|
||
|
|
||
|
DWORD GetType( void ) { return m_type; }
|
||
|
|
||
|
DWORD GetSize( void ) { return m_cbData; }
|
||
|
|
||
|
BOOL GetData( PBYTE pBuffer, DWORD cbBuffer, DWORD *pType );
|
||
|
|
||
|
BOOL Format( PTSTR pszBuffer, DWORD nSize, BOOL fHex = FALSE );
|
||
|
|
||
|
protected:
|
||
|
|
||
|
PTSTR m_pszName;
|
||
|
|
||
|
DWORD m_type;
|
||
|
|
||
|
PBYTE m_pData;
|
||
|
|
||
|
DWORD m_cbData;
|
||
|
};
|
||
|
|
||
|
typedef CPerfCounter * PCPerfCounter;
|
||
|
#endif
|