what happened to him/her/it?The pronoun “lui” refers to the person or thing that something happened to. This inverted question form is more formal than “qu'est-ce qui lui est arrivé ?”
FR: Que lui est-il arrivé depuis la dernière fois que je l’ai vu ?
EN: What happened to him since the last time I saw him?