OnTopReplica/OnTopReplica/MessagePumpProcessors/ShellInterceptProcessor.cs
Lorenz Cuno Klopfenstein 39a33a4a67 Added logging infrastructure.
Switched to logging for most debug information output.
2013-10-21 08:39:18 +02:00

35 lines
775 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using OnTopReplica.Native;
namespace OnTopReplica.MessagePumpProcessors {
#if DEBUG
/// <summary>
/// Basic shell message interceptor to use for debugging.
/// </summary>
class ShellInterceptProcessor : BaseMessagePumpProcessor {
public override bool Process(ref Message msg) {
if (msg.Msg == HookMethods.WM_SHELLHOOKMESSAGE) {
int hookCode = msg.WParam.ToInt32();
Log.Write("Hook msg #{0}: {1}", hookCode, msg.LParam);
}
return false;
}
protected override void Shutdown() {
}
}
#endif
}