Return Parameters

Return Code Definition
0 The keyboard is unlocked and ready for input.
1 Your application program is not connected to a valid session.
4 Timeout while still in XCLOCK (X []) or XSYSTEM.
5 The keyboard is locked.
9 A system error was encountered.