From: flyfrogs on
Under Start Menu -> Settings - > Lock

It has options like "Prompt if device unused for" and setting timeout,
password type, etc.

I was wondering how I can set these by coding?

Which API?

Please help!

thanks.