pm: add Atmosphere GetProcessHandle command to pm:dmnt (#133)

This commit is contained in:
misson20000 2018-06-07 23:32:45 -07:00 committed by SciresM
parent e964bcf872
commit 28d630a23e
2 changed files with 21 additions and 0 deletions

View file

@ -12,6 +12,8 @@ enum DmntCmd {
Dmnt_Cmd_EnableDebugForTitleId = 4,
Dmnt_Cmd_GetApplicationProcessId = 5,
Dmnt_Cmd_EnableDebugForApplication = 6,
Dmnt_Cmd_AtmosphereGetProcessHandle = 65000
};
enum DmntCmd_5X {
@ -21,6 +23,8 @@ enum DmntCmd_5X {
Dmnt_Cmd_5X_EnableDebugForTitleId = 3,
Dmnt_Cmd_5X_GetApplicationProcessId = 4,
Dmnt_Cmd_5X_EnableDebugForApplication = 5,
Dmnt_Cmd_5X_AtmosphereGetProcessHandle = 65000
};
class DebugMonitorService final : IServiceObject {
@ -37,4 +41,7 @@ class DebugMonitorService final : IServiceObject {
std::tuple<Result, CopiedHandle> enable_debug_for_tid(u64 tid);
std::tuple<Result, u64> get_application_process_id();
std::tuple<Result, CopiedHandle> enable_debug_for_application();
/* Atmosphere commands. */
std::tuple<Result, CopiedHandle> get_process_handle(u64 pid);
};