def _coord_byval(coord):
 return c_long(((coord.Y * 65536) | (coord.X & 65535)))

def _coord_byval ( coord ) : return c_long ( ( ( coord . Y * 65536 ) | ( coord . X & 65535 ) ) )
turns a coord object into a c_long .