I would like to write an application for locking the screen ,have any API for it?