ACTU:GetAccountDataBlock: Difference between revisions

Move data blocks to main page of ACT
TimmSkiller (talk | contribs)
No edit summary
 
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.