use INT_PTR instead of LRESULT for 32bit compatibility