Difference between revisions of "PMDbg:LaunchAppDebug"

From 3dbrew
Jump to navigation Jump to search
m (Steveice10 moved page PMDbg:LaunchTitleDebug to PMDbg:LaunchAppDebug)
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
|-
 
|-
 
| 0
 
| 0
| Header code [0x0001....]
+
| Header code [0x00010140]
 
|-
 
|-
 
| 1-4
 
| 1-4
| 0x10-byte [[PMApp:LaunchTitle|struct]]
+
| [[Filesystem_services#ProgramInfo|Program Info]]
 
|-
 
|-
 
| 5
 
| 5
| Process launch flags
+
| Process launch [[PMApp:LaunchTitle#Launch_Flags|flags]] (Internally ORed with 0x1)
 
|}
 
|}
  
Line 33: Line 33:
 
| Debug handle for the launched process from svcDebugActiveProcess
 
| Debug handle for the launched process from svcDebugActiveProcess
 
|}
 
|}
 +
 +
=Description=
 +
This launches a title and opens a debug handle to its process. If a process is currently queued from [[PMApp:LaunchTitle#Launch_Flags|launch flag 0x8]], this will instead call and return the handle from [[PMDbg:RunQueuedProcess|RunQueuedProcess]].
 +
 +
This returns result code 0xC8A05BF0 if an application is already running.

Latest revision as of 03:57, 20 January 2016

Request[edit]

Index Word Description
0 Header code [0x00010140]
1-4 Program Info
5 Process launch flags (Internally ORed with 0x1)

Response[edit]

Index Word Description
0 Header code
1 Result code
2 N/A
3 Debug handle for the launched process from svcDebugActiveProcess

Description[edit]

This launches a title and opens a debug handle to its process. If a process is currently queued from launch flag 0x8, this will instead call and return the handle from RunQueuedProcess.

This returns result code 0xC8A05BF0 if an application is already running.