To have your program power off the system, use the API PowerOff (use the uppercase and lowercase shown).
To use this command, you must insert the keystick in the electronic keystick slot (on systems with a keystick).
This API returns the following information:
Bytes 0 and 1 | Bytes 2 and 3 | Bytes 4 through 4+ N |
---|---|---|
16-bit return code 0 => Command successful 1 => Command unsuccessful 2 => Key not inserted |
16-bit additional data length N = 0 | Not applicable |