summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavee2018-10-28 15:57:17 +0000
committerDavee2018-10-28 15:57:21 +0000
commita2187a4befbcef53dd3260e8b302ce8e1281d7d6 (patch)
treef57664bcbe40fe9a2a9042c184fd636e0a777981 /include
parentUpdate pss.h (#356) (diff)
downloadvds-libraries-a2187a4befbcef53dd3260e8b302ce8e1281d7d6.tar.gz
add ksceKernelGetProcessStatus
This kernel service queries the status of a given process. I'm unsure what exactly the bits represent. It seems 0x10 is related to suspension status, but I'm not confident in that assumption.
Diffstat (limited to 'include')
-rw-r--r--include/kernel/kernel/processmgr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/kernel/kernel/processmgr.h b/include/kernel/kernel/processmgr.h
index f203eed..af89047 100644
--- a/include/kernel/kernel/processmgr.h
+++ b/include/kernel/kernel/processmgr.h
@@ -25,6 +25,14 @@ int sceKernelCreateProcessLocalStorage(const char *name, SceSize size);
void *sceKernelGetProcessLocalStorageAddr(int key);
int sceKernelGetProcessLocalStorageAddrForPid(SceUID pid, int key, void **out_addr, int create_if_doesnt_exist);
+/**
+ * @brief Get the status of a given process.
+ * @param[in] pid The process ID to query.
+ * @param[out] status The bit field status of the process.
+ * @return Zero on success, < 0 on error.
+ */
+int sceKernelGetProcessStatus(SceUID pid, int *status);
+
#ifdef __cplusplus
}
#endif