github.com/racerxdl/gonx@v0.0.0-20210103083128-c5afc43bcbd2/svc/getinfo.go (about) 1 package svc 2 3 // ID0 for SvcGetInfo 4 const ( 5 InfoType_CoreMask = 0 // Bitmask of allowed Core IDs. 6 InfoType_PriorityMask = 1 // Bitmask of allowed Thread Priorities. 7 InfoType_AliasRegionAddress = 2 // Base of the Alias memory region. 8 InfoType_AliasRegionSize = 3 // Size of the Alias memory region. 9 InfoType_HeapRegionAddress = 4 // Base of the Heap memory region. 10 InfoType_HeapRegionSize = 5 // Size of the Heap memory region. 11 InfoType_TotalMemorySize = 6 // Total amount of memory available for process. 12 InfoType_UsedMemorySize = 7 // Amount of memory currently used by process. 13 InfoType_DebuggerAttached = 8 // Whether current process is being debugged. 14 InfoType_ResourceLimit = 9 // Current process's resource limit handle. 15 InfoType_IdleTickCount = 10 // Number of idle ticks on CPU. 16 InfoType_RandomEntropy = 11 // [2.0.0+] Random entropy for current process. 17 InfoType_AslrRegionAddress = 12 // [2.0.0+] Base of the process's address space. 18 InfoType_AslrRegionSize = 13 // [2.0.0+] Size of the process's address space. 19 InfoType_StackRegionAddress = 14 // [2.0.0+] Base of the Stack memory region. 20 InfoType_StackRegionSize = 15 // [2.0.0+] Size of the Stack memory region. 21 InfoType_SystemResourceSizeTotal = 16 // [3.0.0+] Total memory allocated for process memory management. 22 InfoType_SystemResourceSizeUsed = 17 // [3.0.0+] Amount of memory currently used by process memory management. 23 InfoType_ProgramId = 18 // [3.0.0+] Program ID for the process. 24 InfoType_InitialProcessIdRange = 19 // [4.0.0-4.1.0] Min/max initial process IDs. 25 InfoType_UserExceptionContextAddress = 20 // [5.0.0+] Address of the process's exception context (for break). 26 InfoType_TotalNonSystemMemorySize = 21 // [6.0.0+] Total amount of memory available for process, excluding that for process memory management. 27 InfoType_UsedNonSystemMemorySize = 22 // [6.0.0+] Amount of memory used by process, excluding that for process memory management. 28 InfoType_IsApplication = 23 // [9.0.0+] Whether the specified process is an Application. 29 InfoType_ThreadTickCount = 0xF0000002 // Number of ticks spent on thread. 30 )