A latch mechanism is provided for locking a cover unit to a base unit. The latch mechanism includes a locking member slidably installed in the cover unit, a button movably attached to the cover unit, and a pivot member pivotably connected to the cover unit. The locking member includes a hook for engaging with the base unit, and an engaging portion formed thereon. The button forms a pushing portion. The pivot member is capable of being driven by the pushing portion of the button to rotate and in turn to slide the locking member for disengaging the hook from the base unit.