Hi All

Is there a way in Java to figure out if my computer is locked or unlocked? I am planning to write a program in Java that will detect if my computer is locked/unlocked and accordingly take an appropriate action.

Please advise.

Thanks and Regards,
Pratyush