Class WinEventInfo
This class represents the information passed to the WinEventProc as described here
Inheritance
Namespace: Dapplo.Windows.Structs
Assembly: Dapplo.Windows.dll
Syntax
public class WinEventInfo : object
Properties
| Improve this Doc View SourceEventHook
Handle to an event hook function. This value is returned by SetWinEventHook when the hook function is installed and is specific to each instance of the hook function.
Declaration
public IntPtr EventHook { get; }
Property Value
Type | Description |
---|---|
IntPtr |
EventThread
Identifies the thread that generated the event, or the thread that owns the current window.
Declaration
public ulong EventThread { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
EventTime
Specifies the time, in milliseconds, that the event was generated.
Declaration
public ulong EventTime { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Handle
Handle to the window that generates the event, or IntPtr.Zero if no window is associated with the event. For example, the mouse pointer is not associated with a window.
Declaration
public IntPtr Handle { get; }
Property Value
Type | Description |
---|---|
IntPtr |
IdChild
Identifies whether the event was triggered by an object or a child element of the object. If this value is CHILDID_SELF (0), the event was triggered by the object; otherwise, this value is the child ID of the element that triggered the event.
Declaration
public long IdChild { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
IsSelf
Identifies whether the event was triggered by an object
Declaration
public bool IsSelf { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ObjectIdentifier
Handle to the window that generates the event, or IntPtr.Zero if no window is associated with the event. For example, the mouse pointer is not associated with a window.
Declaration
public ObjectIdentifiers ObjectIdentifier { get; }
Property Value
Type | Description |
---|---|
ObjectIdentifiers |
WinEvent
Specifies the event that occurred.
Declaration
public WinEvents WinEvent { get; }
Property Value
Type | Description |
---|---|
WinEvents |
Methods
| Improve this Doc View SourceCreate(IntPtr, WinEvents, IntPtr, ObjectIdentifiers, Int64, UInt64, UInt64)
Create a WinEventInfo instance
Declaration
public static WinEventInfo Create(IntPtr winEventHook, WinEvents winEvent, IntPtr hWnd, ObjectIdentifiers idObject, long idChild, ulong eventThread, ulong eventTime)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | winEventHook | Handle to an event hook function. This value is returned by SetWinEventHook when the hook function is installed and is specific to each instance of the hook function. |
WinEvents | winEvent | Specifies the event that occurred. This value is one of the event constants. |
IntPtr | hWnd | Handle to the window that generates the event, or NULL if no window is associated with the event. For example, the mouse pointer is not associated with a window. |
ObjectIdentifiers | idObject | Identifies the object associated with the event. This is one of the object identifiers or a custom object ID. |
System.Int64 | idChild | Identifies whether the event was triggered by an object or a child element of the object. If this value is CHILDID_SELF, the event was triggered by the object; otherwise, this value is the child ID of the element that triggered the event. |
System.UInt64 | eventThread | Identifies the thread that generated the event, or the thread that owns the current window. |
System.UInt64 | eventTime | Specifies the time, in milliseconds, that the event was generated. |
Returns
Type | Description |
---|---|
WinEventInfo |