12 PMLAUNCHFLAG_NORMAL_APPLICATION =
BIT(0),
13 PMLAUNCHFLAG_LOAD_DEPENDENCIES =
BIT(1),
14 PMLAUNCHFLAG_NOTIFY_TERMINATION =
BIT(2),
15 PMLAUNCHFLAG_QUEUE_DEBUG_APPLICATION =
BIT(3),
16 PMLAUNCHFLAG_TERMINATION_NOTIFICATION_MASK = 0xF0,
19 PMLAUNCHFLAG_USE_UPDATE_TITLE =
BIT(16),
Result PMAPP_TerminateCurrentApplication(s64 timeout)
Terminates the current Application.
Result PMAPP_LaunchTitleUpdate(const FS_ProgramInfo *programInfo, const FS_ProgramInfo *programInfoUpdate, u32 launchFlags)
Launches a title, applying patches.
Result PMAPP_GetTitleExheaderFlags(ExHeader_Arm11CoreInfo *outCoreInfo, ExHeader_SystemInfoFlags *outSiFlags, const FS_ProgramInfo *programInfo)
Gets a title's ExHeader Arm11CoreInfo and SystemInfo flags.
Handle * pmAppGetSessionHandle(void)
Gets the current pm:app session handle.
Result PMAPP_GetAppResourceLimit(s64 *outCpuTime)
Gets the APPLICATION cputime reslimit.
Result PMAPP_UnregisterProcess(u64 tid)
Unregisters a process.
Result pmAppInit(void)
Initializes pm:app.
Result PMAPP_PrepareForReboot(s64 timeout)
Terminate most processes, to prepare for a reboot or a shutdown.
Result PMAPP_SetFIRMLaunchParams(u32 size, const void *in)
Sets the current FIRM launch parameters.
@ PMLAUNCHFLAG_FORCE_USE_O3DS_APP_MEM
Forces the usage of the O3DS system mode app memory setting even if N3DS system mode is not "Legacy"....
Definition: pmapp.h:17
@ PMLAUNCHFLAG_FORCE_USE_O3DS_MAX_APP_MEM
In conjunction with the above, forces the 96MB app memory setting. N3DS only.
Definition: pmapp.h:18
Result PMAPP_GetFIRMLaunchParams(void *out, u32 size)
Gets the current FIRM launch parameters.
Result PMAPP_TerminateProcess(u32 pid, s64 timeout)
Terminates the specified process.
Result PMAPP_TerminateTitle(u64 titleId, s64 timeout)
Terminates the processes having the specified titleId.
void pmAppExit(void)
Exits pm:app.
Result PMAPP_LaunchFIRMSetParams(u32 firmTidLow, u32 size, const void *in)
Sets the current FIRM launch parameters.
Result PMAPP_SetAppResourceLimit(s64 cpuTime)
Sets the APPLICATION cputime reslimit.
Result PMAPP_LaunchTitle(const FS_ProgramInfo *programInfo, u32 launchFlags)
Launches a title.
Program information.
Definition: fs.h:183
int64_t s64
64-bit signed integer
Definition: types.h:29
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:47
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
u32 Handle
Resource handle.
Definition: types.h:41
s32 Result
Function result.
Definition: types.h:42
uint32_t u32
32-bit unsigned integer
Definition: types.h:23