HwndSourceHook 대리자

정의

Win32 창 메시지를 처리하는 메서드를 나타냅니다.

public delegate IntPtr HwndSourceHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool % handled);
public delegate IntPtr HwndSourceHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
type HwndSourceHook = delegate of nativeint * int * nativeint * nativeint * bool -> nativeint
Public Delegate Function HwndSourceHook(hwnd As IntPtr, msg As Integer, wParam As IntPtr, lParam As IntPtr, ByRef handled As Boolean) As IntPtr 

매개 변수

hwnd
IntPtr

nativeint

창 핸들입니다.

msg
Int32

메시지 ID입니다.

wParam
IntPtr

nativeint

메시지의 wParam 값입니다.

lParam
IntPtr

nativeint

메시지의 IParam 값입니다.

handled
Boolean

메시지가 처리되었는지 여부를 나타내는 값입니다. 메시지가 처리되었으면 값을 true로 설정하고, 그렇지 않으면 false로 설정합니다.

반환 값

IntPtr

nativeint

특정 메시지에 따라 적절한 반환 값이 결정됩니다. 처리 중인 Win32 메시지에 대한 메시지 설명서 세부 정보를 참조하세요.

설명

사용 된 AddHook 메시지를 받으려면이 처리기를 등록 하는 방법입니다.

확장 메서드

GetMethodInfo(Delegate)

지정된 대리자가 나타내는 메서드를 나타내는 개체를 가져옵니다.

적용 대상

추가 정보