api.cpp and api.mak API Example code