I can't get the position of the hair in every frame correctly.

I made a dynamic hair in blender, and I’ve cached it. I want to get the location of each frame’s hair point through C language and print it to the console, but I get the same hair position in every frame. How can I get the correct result? Can someone help me?

Can someone who knows help me solve this problem?:思维: