Lines Matching refs:HostPowerServiceWin
34 HostPowerServiceWin::HostPowerServiceWin(VirtualBox *aVirtualBox) : HostPowerService(aVirtualBox), mThread(NIL_RTTHREAD)
38 int rc = RTThreadCreate(&mThread, HostPowerServiceWin::NotificationThread, this, 65536,
43 Log(("HostPowerServiceWin::HostPowerServiceWin: RTThreadCreate failed with %Rrc\n", rc));
48 HostPowerServiceWin::~HostPowerServiceWin()
52 Log(("HostPowerServiceWin::!HostPowerServiceWin: destroy window %x\n", mHwnd));
65 DECLCALLBACK(int) HostPowerServiceWin::NotificationThread(RTTHREAD ThreadSelf, void *pInstance)
67 HostPowerServiceWin *pPowerObj = (HostPowerServiceWin *)pInstance;
79 wc.lpfnWndProc = HostPowerServiceWin::WndProc;
94 Log(("HostPowerServiceWin::NotificationThread: RegisterClassA failed with %x\n", GetLastError()));
106 Log(("HostPowerServiceWin::NotificationThread: CreateWindowExA failed with %x\n", GetLastError()));
133 Log(("HostPowerServiceWin::NotificationThread: exit thread\n"));
146 LRESULT CALLBACK HostPowerServiceWin::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
152 HostPowerServiceWin *pPowerObj;
154 pPowerObj = (HostPowerServiceWin *)GetWindowLongPtr(hwnd, 0);