NS services: Difference between revisions
Line 992: | Line 992: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || [[#LaunchProgram]] | | 0 || [[#LaunchProgram]] | ||
|- | |- | ||
| 1 || [[#TerminateProcess]] | | 1 || [[#TerminateProcess]] | ||
|- | |- | ||
| 2 || [[#TerminateProgram]] | | 2 || [[#TerminateProgram]] | ||
|- | |- | ||
| | | 4 || [[#GetShellEventHandle]] | ||
|- | |- | ||
| | | 5 || [[#GetShellEventInfo]] | ||
|- | |- | ||
| | | 6 || [[#TerminateApplication]] | ||
|- | |- | ||
| | | 7 || [[#PrepareLaunchProgramFromHost]] | ||
|- | |- | ||
| | | 8 || [[#LaunchApplication_2|#LaunchApplication]] | ||
|- | |- | ||
| | | 9 || [[#LaunchApplicationWithStorageId]] | ||
|- | |- | ||
|} | |} | ||
Line 1,035: | Line 1,033: | ||
== PrepareLaunchProgramFromHost == | == PrepareLaunchProgramFromHost == | ||
Takes a type-0x5 input buffer containing the [[Filesystem_services|ContentPath]], returns an output 0x10-byte struct. | |||
Calls [[NCM_services#IPathResolverForStorage|IPathResolverForStorage]] Set...NcaPath functions. | Calls [[NCM_services#IPathResolverForStorage|IPathResolverForStorage]] Set...NcaPath functions. | ||
== LaunchApplication == | == LaunchApplication == | ||
Takes | Takes an input u32 and u64, returns an output u64. | ||
Same as LaunchApplicationWithStorageId except the last two params passed to the internal vtable funcptr call are value 0x6, instead of from the command input. | |||
== LaunchApplicationWithStorageId == | == LaunchApplicationWithStorageId == | ||
Takes an | Takes 2 input u8s, an u32, and an u64. Returns an output u64. | ||
[[Category:Services]] | [[Category:Services]] |