-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathNotifyWindow.h
More file actions
39 lines (30 loc) · 784 Bytes
/
Copy pathNotifyWindow.h
File metadata and controls
39 lines (30 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _NOTIFYWINDOW_H_
#define _NOTIFYWINDOW_H_
#include <boost/noncopyable.hpp>
#include "Win_ManualResetEvent.h"
#include "Win_Thread.h"
namespace DeviceDetectLibrary
{
class IDeviceChanged;
class CNotifyWindow : boost::noncopyable
{
public:
explicit CNotifyWindow(IDeviceChanged& deviceChanged);
virtual ~CNotifyWindow(void);
HWND GetHWND(void) const;
private:
void NotifyRegisterClass(HINSTANCE hInstance);
bool InitInstance(HINSTANCE hInstance);
private:
static void ThreadProc(void* context);
private:
static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
private:
HWND hWnd_;
bool destroy_;
CThread thread_;
CManualResetEvent started_;
IDeviceChanged& deviceChanged_;
};
}
#endif // _NOTIFYWINDOW_H_