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
device.h 556 B
#ifndef DEVICE_H
#define DEVICE_H
#include <wtypes.h>
class CMemStat;
class CDevice {
public:
CDevice();
~CDevice();
BOOL Init(SERVICE_STATUS_HANDLE hService);
VOID Fini();
BOOL Start();
VOID Stop();
protected:
PTCHAR GetDevicePath(IN LPGUID InterfaceGuid);
DWORD Run();
private:
static DWORD WINAPI DeviceThread(LPDWORD lParam);
VOID WriteLoop(HANDLE hDevice);
CMemStat* m_pMemStat;
SERVICE_STATUS_HANDLE m_hService;
HANDLE m_hThread;
HANDLE m_evtTerminate;
HANDLE m_evtWrite;
};
#endif