public override void OnHwndCreated(IntPtr hWnd) { base.OnHwndCreated(hWnd); RegisterShellHookWindow(hWnd); messageShellHookId = RegisterWindowMessage("SHELLHOOK"); WndProcHookManager.RegisterHookHandlerForMessage((int)messageShellHookId, this); }
public ShellMessageHookHandler() { WndProcHookManager.RegisterHookHandler(this); }