How can I listen for an anim notify event on C++?

If I understood the question correctly, this could help: