some little code snippets on who a use some C/C++ APIs