NS services: Difference between revisions
Line 979: | Line 979: | ||
| 2800 || [9.0.0+] GetApplicationIdOfPreomia | | 2800 || [9.0.0+] GetApplicationIdOfPreomia | ||
|- | |- | ||
| 3000 || [11.0.0+] RegisterDeviceLockKey | | 3000 || [11.0.0+] [[#RegisterDeviceLockKey]] | ||
|- | |- | ||
| 3001 || [11.0.0+] UnregisterDeviceLockKey | | 3001 || [11.0.0+] [[#UnregisterDeviceLockKey]] | ||
|- | |- | ||
| 3002 || [11.0.0+] VerifyDeviceLockKey | | 3002 || [11.0.0+] [[#VerifyDeviceLockKey]] | ||
|- | |- | ||
| 3003 || [11.0.0+] HideApplicationIcon | | 3003 || [11.0.0+] HideApplicationIcon | ||
Line 1,472: | Line 1,472: | ||
==== GetApplicationResource ==== | ==== GetApplicationResource ==== | ||
Returns an [[#IApplicationResource]]. | Returns an [[#IApplicationResource]]. | ||
==== RegisterDeviceLockKey ==== | |||
Takes a type-0x5 input buffer containing an InArray of u8, no output. | |||
User-processes expose this with two funcs: one which uses an user-specified u8 array directly, while the other uses [[HID_services#NpadButtonSet|NpadButton]]. | |||
This does SHA256 hashing, etc. | |||
==== UnregisterDeviceLockKey ==== | |||
No input/output. | |||
Runs code identical to [[#RegisterDeviceLockKey]], except the passed buffer/size are 0. | |||
==== VerifyDeviceLockKey ==== | |||
Takes a type-0x5 input buffer containing an InArray of u8, no output. | |||
User-processes expose this with two funcs: one which uses an user-specified u8 array directly, while the other uses [[HID_services#NpadButtonSet|NpadButton]]. | |||
This runs hashing similar to [[#RegisterDeviceLockKey]], with the calculated hash being verified with the one from state. | |||
=== IGameCardStopper === | === IGameCardStopper === |