How to amend a bone's position in animation sequence and also satisfy an IK definition

I have a custom plugin, which can amend animation sequence file to adjust specific bone’s position.
How can I move a specific bone’s position using C++ and also make it comply to an IK definition(I also have an IK Binding file)