Ahmad Niyaltigin was the treasurer of a sultan who rose to power by seizing what from his younger twin?
Ahmad Niyaltigin Ahmad Niyaltigin (Persian: ‎ ‎ ) was a treasurer of Sultan Mahmud Ghaznavi and later of his son Sultan Mas'ud Ghaznavi. Sultan Masud appointed him governor of Punjab region in 1033. Ahmad Niyaltigin with small detachment of soldiers raided Varanasi, before withdrawing back to Punjab.
Ahmad Shirazi Khwaja Abu Nasr Ahmad (Persian: خواجه ابو نصر احمد‎ ‎ ), better known as Ahmad Shirazi (احمد شیرازی ), also known as Ahmad(-e) Abd al-Samad (احمد الکترونیکی عبد صمد ), was a Persian "vizier" of the Ghaznavid Sultan Mas'ud I and the latter's son Mawdud from 1032 to 1043. He was the son of the Samanid secretary Abu Tahir Shirazi, and had a son named Abd al-Hamid Shirazi, who would also later serve as "vizier".