An error occurred while loading the file. Please try again.
-
Gal Hammer authored
A new implementation of the balloon's service which add handling of device insertion and removal. It also prepare the service to work with a new method of write request in the driver.
f542c3f1
memstat.h 517 B
#ifndef MEMSTAT_H
#define MEMSTAT_H
#include "Wbemidl.h"
#include "coguid.h"
#include "atlbase.h"
#include "comutil.h"
#include "public.h"
class CMemStat {
public:
CMemStat();
~CMemStat();
BOOL Init();
BOOL Update();
PVOID GetBuffer() {
return m_Stats;
}
size_t GetSize() {
return sizeof(m_Stats);
}
private:
BOOL initialized;
CComPtr< IWbemLocator > locator;
CComPtr< IWbemServices > service;
BALLOON_STAT m_Stats[VIRTIO_BALLOON_S_NR];
};
#endif