How to use system API functions