APT:GlanceParameter: Difference between revisions

Guiand (talk | contribs)
Steveice10 (talk | contribs)
m Clean up.
Line 9: Line 9:
|-
|-
| 1
| 1
| AppID
| [[NS_and_APT_Services#AppIDs|AppID]]
|-
|-
| 2
| 2
| Parameter buffer size, max size is 0x1000.
| Parameter Size (max is 0x1000)
|}
|}


The following is located 0x100-bytes after the beginning of the above command buffer:
The following is located 0x100-bytes after the beginning of the above command buffer:
Line 23: Line 22:
|-
|-
| 0
| 0
| <nowiki>(Size<<14) | 2</nowiki>
| <nowiki>(Parameter Size << 14) | 2</nowiki>
|-
|-
| 1
| 1
| Output parameter buffer ptr
| void*, Parameter Output
|}
|}


Line 42: Line 41:
|-
|-
| 2
| 2
| Sender AppID
| Sender [[NS_and_APT_Services#AppIDs|AppID]]
|-
|-
| 3
| 3
| Command
| [[NS_and_APT_Services#Command|Command]]
|-
|-
| 4
| 4
| Actual parameter buffer size, this is <= to the the input size.
| Actual Parameter Size
|-
|-
| 5
| 5
| Value 0x0
| 0x0
|-
|-
| 6
| 6
| Handle from the source process which set the parameters, this handle is likely used for shared memory(this can be 0x0).
| Handle Parameter
|-
| 7
| <nowiki>(Size<<14) | 2</nowiki>
|-
| 8
| Output parameter buffer ptr
|}
|}


=Description=
=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.
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 one of the above values.