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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Sub NotifyWinEvent (
winEvent As UInteger,
hWnd As IntPtr,
idObject As Integer,
idChild As Integer
)
Dim winEvent As UInteger
Dim hWnd As IntPtr
Dim idObject As Integer
Dim idChild As Integer
User32.NotifyWinEvent(winEvent, hWnd,
idObject, idChild)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static void NotifyWinEvent(
unsigned int winEvent,
IntPtr hWnd,
int idObject,
int idChild
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member NotifyWinEvent :
winEvent : uint32 *
hWnd : IntPtr *
idObject : int *
idChild : int -> unit
No code example is currently available or this language may not be supported.
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.