The last Ghaznavid Sultan was Khusrau Malik, who at the time of Ghori's attack, was ruling around Punjab and Lahore region. Ghori captured Lahore in 1186 and Khusrau Malik and his son were taken to Ghur where they were imprisoned, and possibly executed.
This Question is Also Available in:
हिन्दी