correct some prototypes
use GetWndProc function globaly for commonui project
optimize code for WIN386