mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
pm: add Atmosphere GetProcessHandle command to pm:dmnt (#133)
This commit is contained in:
parent
e964bcf872
commit
28d630a23e
2 changed files with 21 additions and 0 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue