User32NotifyWinEvent Method

Signals the system that a predefined event occurred.

If any client applications have registered a hook function for the event, the system calls the client's hook function.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true)]
public static void NotifyWinEvent(
	uint winEvent,
	IntPtr hWnd,
	int idObject,
	int idChild
)

Parameters

winEvent  UInt32
Specifies the event that occurred. This value must be one of the event constants.
hWnd  IntPtr
Handle to the window that contains the object that generated the event.
idObject  Int32
Identifies the object that generated the event. This value is either one of the predefined object identifiers or a custom object ID value.
idChild  Int32
Identifies whether the event was generated by an object or by a child element of the object. If this value is CHILDID_SELF, the event was generated by the object itself.

If not CHILDID_SELF, this value is the child ID of the element that generated the event.

Remarks

See Also