Thanks, huge mistake from this side.
It compiles, but I don't know if it is the same that I had been doing. My goal was to rename IBM's PMGPI.DLL to XMGPI.DLL and have a fake PMGPI.DLL that forward the functions to XMGPI.DLL.
It compiles but it refers now to GPI.DLL, even if I rename IBM's PMGPI.DLL to GPI.DLL, it will give me the same boot errors when I load eCS 2.2 with the "fake PMGPI.DLL" I created.
Regards