Usually it uses RPM sensing or foot brake to lock the door locks. The alarm is aftermarket. Check what brand you have and check it out on the internet.

Wiring the windows may not be a good idea because it might kill the window motors pretty quick. Otherwise just add on a relay to control it.