internal ShellEventHook(IntPtr hWnd) { var cp = new CreateParams(); CreateHandle(cp); DllUser32.SetTaskmanWindow(hWnd); if (DllUser32.RegisterShellHookWindow(Handle)) { _wmShellHook = DllUser32.RegisterWindowMessage("SHELLHOOK"); } }