public SessionTracker() { windowProcDelegate = WindowProc; newWindowProc = Marshal.GetFunctionPointerForDelegate(windowProcDelegate); originalWindowProc = SetWindowLong(messageWindow, GWLP_WNDPROC, newWindowProc); dispatcher = Dispatcher.CurrentDispatcher; }
public static extern IntPtr SubclassWindow(IntPtr hWnd, int nIndex, WindowProcDelegate dwNewLong);