private int CallNextHook(int code, KeyboardMessage message, ref KeyboardState state) { if (code >= 0) { KeyboardHookedEventArgs e = new KeyboardHookedEventArgs(message, ref state); OnKeyboardHooked(e); if (e.Cancel) { return -1; } } return CallNextHookEx(IntPtr.Zero, code, message, ref state); }
///<summary>�V�����C���X�^���X��쐬����B</summary> internal KeyboardHookedEventArgs(KeyboardMessage message, ref KeyboardState state) { this.message = message; this.state = state; }
private static extern int CallNextHookEx(IntPtr hook, int code, KeyboardMessage message, ref KeyboardState state);