Difference between revisions of "APT:GlanceParameter"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000E0080] |- | 1 | AppletID |- | 2 | Parameter buffer size, max size is 0x1000. ...")
(No difference)

Revision as of 23:43, 30 September 2013

Request

Index Word Description
0 Header code [0x000E0080]
1 AppletID
2 Parameter buffer size, max size is 0x1000.


The following is located 0x100-bytes after the beginning of the above command buffer:

Index Word Description
0 (Size<<14) | 2
1 Output parameter buffer ptr

Response

Index Word Description
0 Header code
1 Result code
2 Unknown
3 Unknown
4 Actual parameter buffer size, this is <= to the the input size.
5 Value 0x0
6 Handle from the source process which set the parameters, this handle is likely used for shared memory(this can be 0x0).
7 (Size<<14) | 2
8 Output parameter buffer ptr

Description

This is exactly the same as APT:ReceiveParameter(except for the word value prior to the output handle), except this will not clear the flag(except when responseword[3]==8 || responseword[3]==9) in NS state. Thus, the parameter data can still be loaded via APT:ReceiveParameter/APT:GlanceParameter after using this command, except when responseword[3] is the above values.