ArgumentException: 零的 Hwnd 无效。 --Message: 零的 Hwnd 无效。 StackTrace: 在 System.Windows.Interop.HwndSource.CriticalFromHwnd(IntPtr hwnd) 在 DynamicClass.WindowInfo.getType(IntPtr handle) 在 DynamicClass.WindowInfo..ctor(IntPtr handle, String title, String className, String processName, Int32 processId, String processFilePath) 在 DynamicClass.getWindowInfo(IntPtr hwnd) 在 DynamicClass.WinEventProc(IntPtr hWinEventHook, UInt32 eventType, IntPtr hwnd, Int32 idObject, Int32 idChild, UInt32 dwEventThread, UInt32 dwmsEventTime)