Difference between revisions of "APT:SendParameter"

From 3dbrew
Jump to navigation Jump to search
m
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| Source AppID(for the process using this command). This is also returned in the [[APT:ReceiveParameter]] command response.
+
| Source [[NS_and_APT_Services#AppIDs|AppID]]
 
|-
 
|-
 
| 2
 
| 2
| Destination AppID
+
| Destination [[NS_and_APT_Services#AppIDs|AppID]]
 
|-
 
|-
 
| 3
 
| 3
| Unknown, NS sets a state field to wordvalue & 0xffff. The second unknown field returned by [[APT:ReceiveParameter]] is this state field.
+
| [[NS_and_APT_Services#Command|Command]]
 
|-
 
|-
 
| 4
 
| 4
| Parameter buffer size, max size is 0x1000(this can be zero).
+
| Parameter Size (max is 0x1000)
 
|-
 
|-
 
| 5
 
| 5
| Value 0x0
+
| 0x0
 
|-
 
|-
 
| 6
 
| 6
| Handle [[APT:ReceiveParameter|passed]] to the destination process, likely used for shared memory(this can be 0x0).
+
| Handle Parameter
 
|-
 
|-
 
| 7
 
| 7
| <nowiki>(Size<<14) | 2</nowiki>
+
| (Parameter Size << 14) <nowiki>|</nowiki> 2
 
|-
 
|-
 
| 8
 
| 8
| Input parameter buffer ptr
+
| void*, Parameter
 
|}
 
|}
  

Latest revision as of 04:03, 22 November 2015

Request[edit]

Index Word Description
0 Header code [0x000C0104]
1 Source AppID
2 Destination AppID
3 Command
4 Parameter Size (max is 0x1000)
5 0x0
6 Handle Parameter
7 (Parameter Size << 14) | 2
8 void*, Parameter

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

This sets the parameter data state.