Пример #1
0
 /// <summary>
 /// Initializes a new instance of the AccessibleEventArgs class.
 /// </summary>
 public AccessibleEventArgs(AccessibleEventType eventType,
                            IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
 {
     this.eventType     = eventType;
     this.hWnd          = hwnd;
     this.idObject      = idObject;
     this.idChild       = idChild;
     this.dwEventThread = dwEventThread;
     this.dwmsEventTime = dwmsEventTime;
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the AccessibleEventArgs class.
 /// </summary>
 public AccessibleEventArgs(AccessibleEventType eventType,
                            IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
 {
     EventType = eventType;
     HWnd      = hwnd;
     ObjectID  = idObject;
     ChildID   = idChild;
     Thread    = dwEventThread;
     Time      = dwmsEventTime;
 }
Пример #3
0
        private void InternalCallback(IntPtr hWinEventHook, AccessibleEventType eventType,
                                      IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
        {
            if (hWinEventHook != handle)
            {
                return;
            }
            AccessibleEventArgs aea = new AccessibleEventArgs(eventType, hwnd, idObject, idChild, dwEventThread, dwmsEventTime);

            if (EventOccurred != null)
            {
                EventOccurred(this, aea);
            }
        }
Пример #4
0
 private static extern IntPtr SetWinEventHook(AccessibleEventType eventMin, AccessibleEventType eventMax, IntPtr
                                              hmodWinEventProc, WinEventDelegate lpfnWinEventProc, uint idProcess,
                                              uint idThread, uint dwFlags);
Пример #5
0
 private void InternalCallback(IntPtr hWinEventHook, AccessibleEventType eventType,
     IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
 {
     if (hWinEventHook != handle) return;
     AccessibleEventArgs aea = new AccessibleEventArgs(eventType, hwnd, idObject, idChild, dwEventThread, dwmsEventTime);
     if (EventOccurred != null)
         EventOccurred(this, aea);
 }
Пример #6
0
 private static extern IntPtr SetWinEventHook(AccessibleEventType eventMin, AccessibleEventType eventMax, IntPtr
     hmodWinEventProc, WinEventDelegate lpfnWinEventProc, uint idProcess,
     uint idThread, uint dwFlags);
Пример #7
0
 public AccessibleEventArgs(AccessibleEventType eventType,
     IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
 {
     this.eventType = eventType;
     this.hWnd = hwnd;
     this.idObject = idObject;
     this.idChild = idChild;
     this.dwEventThread = dwEventThread;
     this.dwmsEventTime = dwmsEventTime;
 }