Torna al Thread
[DllImport("user32.dll", EntryPoint = "CallWindowProcA")]
public static extern int callWindowProc(int lpPrevWndFunc, int hwnd, int Msg, int wParam, int lParam);
[DllImport("user32.dll", EntryPoint = "SetWindowLongA")]
public static extern int setWindowLong(int hwnd, int nIndex, int dwNewLong);
public delegate int SubClassProcDelegate(int hwnd, int msg, int wParam, int lParam);
DllImport("user32.dll", EntryPoint = "SetWindowLongA")]
public static extern int delegateSetWindowLong(int hwnd, int attr, SubClassProcDelegate lval);