APT:GetProgramID: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Megazig (talk | contribs)
APT:GetProgramID
 
Steveice10 (talk | contribs)
mNo edit summary
 
Line 9: Line 9:
|-
|-
| 1
| 1
| checked equal to 0x20
| 0x20
|-
|-
| 2
| 2
| processID
| Process ID
|}
|}


Line 27: Line 27:
| Result code
| Result code
|-
|-
| 2
| 2-3
| programID lower word
| u64, Program ID
|-
| 3
| programID upper word
|}
|}


=Description=
=Description=
This calls [[FS:GetProgramLaunchInfo]] and returns the programID if found. If not, this returns 0.
This calls [[FS:GetProgramLaunchInfo]] and returns the Program ID if found. If not, this returns 0.

Latest revision as of 08:22, 22 November 2015

Request

Index Word Description
0 Header code [0x00580002]
1 0x20
2 Process ID

Response

Index Word Description
0 Header code
1 Result code
2-3 u64, Program ID

Description

This calls FS:GetProgramLaunchInfo and returns the Program ID if found. If not, this returns 0.