mmonaco27 0 Light Poster

I would like to create a button on my desktop/taskbar that can toggle the On Resume Password Protect setting.

Does anyone know how to change this setting manually? Through the registry? Through running a program with a parameter? Or where I could find out?

Also how can I make an icon change (like the recycling bin) So maybe a padlock that switches between locked and unlocked...