Difference between revisions of "ACTU:GetAccountDataBlock"

From 3dbrew
Jump to navigation Jump to search
(Move data blocks to main page of ACT)
 
Line 1: Line 1:
 
=Request=
 
=Request=
{| class="wikitable" border="1"
+
{{IPC/Request}}
|-
+
{{IPC/RequestHeader|0x0006|3|2}}
!  Index Word
+
{{IPC/RequestEntry|u8, Account slot (0xFE for default)}}
!  Description
+
{{IPC/RequestEntry|Output buffer size}}
|-
+
{{IPC/RequestEntry|Account data type}}
| 0
+
{{IPC/MapPointerW|Output buffer}}
| Header code [0x000600C2]
+
{{IPC/RequestEnd}}
|-
 
| 1
 
| u8 Account slot (0xFE to use current account)
 
|-
 
| 2
 
| Size
 
|-
 
| 3
 
| [[ACT_Services#DataBlocks|BlkID]]
 
|-
 
| 4
 
| (Size<<4)  <nowiki>|</nowiki> 12
 
|-
 
| 5
 
| Output buffer ptr
 
|}
 
  
 
=Response=
 
=Response=
{| class="wikitable" border="1"
+
{{IPC/Request}}
|-
+
{{#vardefine:ipc_offset|0}}
!  Index Word
+
{{IPC/RequestHeader|0x0006|1|2}}
!  Description
+
{{IPC/RequestEntry|Result code}}
|-
+
{{IPC/MapPointerW|Output buffer}}
| 0
+
{{IPC/RequestEnd}}
| Header code
 
|-
 
| 1
 
| Result code
 
|}
 
  
 
=Description=
 
=Description=
This returns NNID account info. This data usually comes from account.dat
+
Returns information associated to the account specified by the account slot.
  
Also known as GetAccountInfo.
+
See [[ACT_Services#DataBlocks|DataBlocks]] for possible data types.

Latest revision as of 18:03, 12 January 2025

Request[edit]

Index Word Description
0
Header 0x000600C2 Cmd 0x0006 Param 3 Xlat 2
1 u8, Account slot (0xFE for default)
2 Output buffer size
3 Account data type
4 Descriptor for mapping a write-only buffer in the target process
5 Output buffer

Response[edit]

Index Word Description
0
Header 0x00060042 Cmd 0x0006 Param 1 Xlat 2
1 Result code
2 Descriptor for mapping a write-only buffer in the target process
3 Output buffer

Description[edit]

Returns information associated to the account specified by the account slot.

See DataBlocks for possible data types.