You know when you register a class you can set it wndproc callback function? Or when you subclass you set it?
How does the system call that function?
Like:
WNDPROC procfunc = WinProc;
How does it call the function that procfunc has as it's value, in this case WinProc.