示例#1
0
 /// <summary>
 ///     Creates new instance of <see cref="LowLevelMouseHookExecutionEventArgs" />.
 /// </summary>
 /// <param name="nCode">The <see cref="WinHookCode" /> of this execution event.</param>
 /// <param name="wParam">
 ///     The WORD parameter passed to the <see cref="LowLevelMouseHook.MainProcedure" />, cast to a
 ///     <see cref="MouseMessage" />.
 /// </param>
 /// <param name="lParam">
 ///     The LONG parameter passed to the <see cref="LowLevelMouseHook.MainProcedure" />, marshaled as a
 ///     <see cref="LowLevelMouseHookStructure" />.
 /// </param>
 public LowLevelMouseHookExecutionEventArgs(WinHookCode nCode,
                                            MouseMessage wParam,
                                            LowLevelMouseHookStructure lParam)
     : base((int)nCode, wParam, lParam)
 {
 }
 /// <summary>
 ///     Is the specified <see cref="WinHookCode" /> able to be handled by the hook?
 /// </summary>
 /// <param name="nCode">The nCode to check.</param>
 /// <returns></returns>
 protected virtual bool CanHookHandle(WinHookCode nCode)
 {
     return(true);
 }
 public KeyboardHookExecutionEventArgs(WinHookCode nCode, Keys wParam, KeyboardHookStructure lParam)
     : base((int)nCode, wParam, lParam)
 {
 }