mirror of
https://github.com/switchbrew/libnx.git
synced 2025-12-06 20:28:15 +01:00
pm: add pmshellGetProcessId (19.0.0+)
This commit is contained in:
parent
cad06c006e
commit
7a8cd13910
@ -138,3 +138,4 @@ Result pmshellGetApplicationProcessIdForShell(u64* pid_out);
|
||||
Result pmshellBoostSystemMemoryResourceLimit(u64 boost_size);
|
||||
Result pmshellBoostApplicationThreadResourceLimit(void);
|
||||
Result pmshellBoostSystemThreadResourceLimit(void);
|
||||
Result pmshellGetProcessId(u64* pid_out, u64 program_id);
|
||||
|
||||
@ -199,3 +199,8 @@ Result pmshellBoostSystemThreadResourceLimit(void) {
|
||||
if (!hosversionIsAtmosphere() && hosversionBefore(14,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||
return _pmCmdVoid(&g_pmshellSrv, 10);
|
||||
}
|
||||
|
||||
Result pmshellGetProcessId(u64* pid_out, u64 program_id) {
|
||||
if (!hosversionIsAtmosphere() && hosversionBefore(19,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||
return _pmCmdInU64OutU64(pid_out, program_id, &g_pmshellSrv, 12);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user