There was many, but it was first founded by Sabuktigin then came:
Ismail Mahmud Muhammad Masud I Muhammad Mawdud Masud II Ali Abd al-Rashid Toghrul Farrukh-Zad Ibrahim Masud III Shirzad Arslan-Shah Bahram Shah Khusrau-Shah Khusrau Malik
The ruler was Sabuktigin, upon his succession to rule of Ghazna after the death of his father-in-law, Alp Tigin, who was a breakaway ex-general of the Samanid Empire from Balkh, north of the Hindu Kush in Greater Khorasan.