Abstract: A device for locking an electronic equipment housing (1) on a tray (11). The device for a moving carriage (20) connected to the front wall (2) of the housing (1). A threaded shaft (21) along which the carriage moves has a hinge pin (22) fixed perpendicularly to one of the ends thereof. A fork (17) is disposed beneath the tray and provided with two inclined slots (30) in which the hinge pin (22) is displaced. Each slot (30) includes at least one stop notch (31, 32, 33) at one or other of its ends for holding fast the hinge pin (22) of the threaded shaft (21).