Hi,
you should have a look at the c++ tutorial 'MechanismViewer', file 'RecorderKeyboardListener.cpp'.
it will give you an idea of how to use the API.
Note that calls are asynchronous, as a consequence you have to wait for a status before proceeding to the next step, API call.
Marc.
永育 洪