gdi32: Add get_any_obj_ptr() to retrieve the ptr and type of a GDI handle.