MCPcopy Create free account
hub / github.com/DrewKestell/BloogBot / ThreadSynchronizer

Method ThreadSynchronizer

BloogBot/ThreadSynchronizer.cs:57–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected