BOSSU:GetTaskState: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=Request=
=Request=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{IPC/RequestHeader|0x0020|2|2}}
!  Index Word
{{IPC/RequestEntry|u32, Task ID size, including NULL terminator}}
!  Description
{{IPC/RequestEntry|bool, Unknown}}
|-
{{IPC/MapPointerR|Task ID buffer}}
| 0
{{IPC/RequestEnd}}
| Header code [0x00200082]
|-
| 1
| TaskID buffer size
|-
| 2
| s8 val, unknown.
|-
| 3
| (Size << 4)  <nowiki>|</nowiki> 0xA
|-
| 4
| TaskID data pointer
|}


=Response=
=Response=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{#vardefine:ipc_offset|0}}
!  Index Word
{{IPC/RequestHeader|0x0020|4|2}}
!  Description
{{IPC/RequestEntry|Result code}}
|-
{{IPC/RequestEntry|u8, [[BOSS_Services#TaskStatus|TaskStateCode]]}}
| 0
{{IPC/RequestEntry|u32, Count}}
| Header code
{{IPC/RequestEntry|u8, Current step ID}}
|-
{{IPC/MapPointerR|Task ID buffer}}
| 1
{{IPC/RequestEnd}}
| Result code
 
|-
=Description=
| 2
Gets the state of the given task on the program ID of the current session.
| u8 [[BOSS_Services|TaskStatus]]
|-
| 3
| Current state value for task PropertyID 0x4.
|-
| 4
| Unknown output u8. Usually 0 when TaskStatus isn't 0x0. In one cases when TaskStatus was 0x0, this field was 0x5.
|}

Latest revision as of 01:02, 2 February 2025

Request

Index Word Description
0
Header 0x00200082 Cmd 0x0020 Param 2 Xlat 2
1 u32, Task ID size, including NULL terminator
2 bool, Unknown
3 Descriptor for mapping a read-only buffer in the target process
4 Task ID buffer

Response

Index Word Description
0
Header 0x00200102 Cmd 0x0020 Param 4 Xlat 2
1 Result code
2 u8, TaskStateCode
3 u32, Count
4 u8, Current step ID
5 Descriptor for mapping a read-only buffer in the target process
6 Task ID buffer

Description

Gets the state of the given task on the program ID of the current session.