Hi Giancarlo,
Not all of us here are familiar with EPANET programming side so if you could let us know what you are trying to get from WO API, we might be able to help you.
Honestly, I am not sure what ENgetlinkvalue does but I am guessing you are interested in getting some link attributes?