protected override void OnStart() { // Retreive the message IDs that we'll look for in WndProc _MsgID_CallWndProc_HookReplaced = WinApi.RegisterWindowMessage("MSG_SNAPSIZE_HOOK_REPLACED"); _MsgID_CallWndProc = WinApi.RegisterWindowMessage("MSG_SNAPSIZE_CALLWNDPROC"); _MsgID_CallWndProc_Params = WinApi.RegisterWindowMessage("MSG_SNAPSIZE_CALLWNDPROC_PARAMS"); // Start the hook GlobalHookApi.InitializeCallWndProcHook(0, _Handle); }
protected override void OnStop() { GlobalHookApi.UninitializeCallWndProcHook(); }