mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Started work on process details.
This commit is contained in:
parent
f73cc51fcc
commit
3322b8754c
2 changed files with 38 additions and 2 deletions
|
@ -920,6 +920,33 @@ function handleServerCommand(data) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 'psinfo': {
|
||||
// Requestion details information about a process
|
||||
if (data.pid) {
|
||||
var info = {}; // TODO: Replace with real data. Feel free not to give all values if not available.
|
||||
info.processName = "dummydata";
|
||||
info.privateMemorySize = 123;
|
||||
info.virtualMemorySize = 123;
|
||||
info.workingSet = 123;
|
||||
info.totalProcessorTime = 123; // Seconds
|
||||
info.userProcessorTime = 123; // Seconds
|
||||
info.startTime = "2012-12-30T23:59:59.000Z"; // Time in UTC ISO format
|
||||
info.sessionId = 123;
|
||||
info.privilegedProcessorTime = 123; // Seconds
|
||||
info.PriorityBoostEnabled = true;
|
||||
info.peakWorkingSet = 123;
|
||||
info.peakVirtualMemorySize = 123;
|
||||
info.peakPagedMemorySize = 123;
|
||||
info.pagedSystemMemorySize = 123;
|
||||
info.pagedMemorySize = 123;
|
||||
info.nonpagedSystemMemorySize = 123;
|
||||
info.mainWindowTitle = "dummydata";
|
||||
info.machineName = "dummydata"; // Only set this if machine name is not "."
|
||||
info.handleCount = 123;
|
||||
mesh.SendCommand({ action: 'msg', type: 'psinfo', pid: data.pid, sessionid: data.sessionid, value: info });
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'pskill': {
|
||||
// Kill a process
|
||||
if (data.value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue