Esempio n. 1
0
 private void handleWindowPositionChanged(IntPtr hWinEventHook, uint eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime)
 {
     try
     {
         _logger?.LogDebug($"Event {eventType:X2} receive started.");
         WindowPositionsChanged?.Invoke(this, EventArgs.Empty);
         _logger?.LogDebug($"Event {eventType:X2} receive completed.");
     }
     catch (Exception ex)
     {
         _logger?.LogError(ex, $"Event {eventType:X2} receive failed.");
     }
 }
 private void handleWindowPositionChanged(IntPtr hWinEventHook, uint eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime)
 {
     WindowPositionsChanged?.Invoke(this, EventArgs.Empty);
 }