Process Manager services: Difference between revisions
→GetUnimplementedEventHandle: GetBootFinishedEvent |
→pm:dmnt: fix names |
||
Line 110: | Line 110: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| [1.0.0-4.1.0] 0 || [[# | | [1.0.0-4.1.0] 0 || [[#GetModuleIdList]] | ||
|- | |- | ||
| 0 ([1.0.0-4.1.0] 1) || [[# | | 0 ([1.0.0-4.1.0] 1) || [[#GetJitDebugProcessIdList]] | ||
|- | |- | ||
| 1 ([1.0.0-4.1.0] 2) || [[# | | 1 ([1.0.0-4.1.0] 2) || [[#StartProcess]] | ||
|- | |- | ||
| 2 ([1.0.0-4.1.0] 3) || [[# | | 2 ([1.0.0-4.1.0] 3) || [[#GetProcessId]] | ||
|- | |- | ||
| 3 ([1.0.0-4.1.0] 4) || [[# | | 3 ([1.0.0-4.1.0] 4) || [[#HookToCreateProcess]] | ||
|- | |- | ||
| 4 ([1.0.0-4.1.0] 5) || [[# | | 4 ([1.0.0-4.1.0] 5) || [[#GetApplicationProcessId]] | ||
|- | |- | ||
| 5 ([1.0.0-4.1.0] 6) || [[#EnableDebugForApplication]] | | 5 ([1.0.0-4.1.0] 6) || [[#EnableDebugForApplication]] | ||
|- | |- | ||
| [6.0.0+] 6 || [[# | | [6.0.0+] 6 || [[#ClearHook]] | ||
|} | |} | ||
== | == GetModuleIdList== | ||
Stubbed in all versions of retail firmware (just returns 0). | |||
[2.0.0+] | [2.0.0+] When output buffer size is > INT_MAX, returns ResultInvalidSize. | ||
== | == GetJitDebugProcessIdList == | ||
Returns an array of pids of all processes that have mask 4 set in process flags. | Returns an array of pids of all processes that have mask 4 set in process flags. | ||
[2.0.0+] | [2.0.0+] When output buffer size is > INT_MAX, returns ResultInvalidSize. | ||
== | == StartProcess == | ||
Takes a pid. Last process event must be ProcessEvent_Created or ProcessEvent_DebugAttached. | Takes a pid. Last process event must be ProcessEvent_Created or ProcessEvent_DebugAttached. | ||
Line 145: | Line 145: | ||
After that, it sets last process state to ProcessEvent_DebugDetached. | After that, it sets last process state to ProcessEvent_DebugDetached. | ||
== | == GetProcessId == | ||
Takes a title-id and returns the pid. | Takes a title-id and returns the pid. | ||
== | == HookToCreateProcess == | ||
Takes a title-id of the program to debug. Sets this to a global field. | Takes a title-id of the program to debug. Sets this to a global field. | ||
Line 155: | Line 155: | ||
Returns an event handle that is signaled when the requested title is about to be launched. | Returns an event handle that is signaled when the requested title is about to be launched. | ||
== | == GetApplicationProcessId == | ||
Returns the pid of the application process. | Returns the pid of the application process. | ||
== | == HookToCreateApplicationProcess == | ||
Does *not* take a specific title-id as input. | Does *not* take a specific title-id as input. | ||
Returns an event handle that is triggered for application titles. | Returns an event handle that is triggered for application titles. | ||
== | == ClearHook == | ||
Takes in a u32 of bitflags. | Takes in a u32 of bitflags. | ||