mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-13 00:42:37 +12:00
35 lines
815 B
C#
35 lines
815 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();
|
|
|
|
System.Diagnostics.Trace.WriteLine(string.Format("Hook msg #{0}: {1}", hookCode, msg.LParam));
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
protected override void Shutdown() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|