()
| 55 | static int windowHandle; |
| 56 | |
| 57 | static ThreadSynchronizer() |
| 58 | { |
| 59 | EnumWindows(FindWindowProc, IntPtr.Zero); |
| 60 | newCallback = WndProc; |
| 61 | oldCallback = SetWindowLong((IntPtr)windowHandle, GWL_WNDPROC, Marshal.GetFunctionPointerForDelegate(newCallback)); |
| 62 | } |
| 63 | |
| 64 | static public void RunOnMainThread(Action action) |
| 65 | { |
nothing calls this directly
no outgoing calls
no test coverage detected