How do wait till a callback function returns
Hi,
I am writing a library. Any exe will build with this library. The library exposes a API which the exe calls. The API inturn registers a callback function. Now how do i wait for the control to return to this callback function. So the sequence of operations is as follows
1) Api Call
2) Call another lib API and register Callback function
3) Process the result in call back function
4) Resume operation from the point where we call the next lib api and register the callback ie from point 2
5)further process the data in the first API
6) return the result of the API call to the exe
TIA