1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-17 08:43:21 +00:00

Updated process-manager to support an options object, for search

Added win-utils to provide windows specific helper methods.
Added ability to set/query system taskbar autohide on Windows
This commit is contained in:
Bryan Roe
2022-08-03 14:43:26 -07:00
parent 0ce0d3bf8b
commit 10c6aa295c
3 changed files with 65 additions and 3 deletions

View File

@@ -350,7 +350,7 @@ function processManager() {
};
}
}
this.getProcessEx = function getProcessEx(cmd)
this.getProcessEx = function getProcessEx(cmd, options)
{
if (process.platform == 'win32')
{
@@ -362,7 +362,10 @@ function processManager() {
{
if(j[i].cmd.toLowerCase() == cmd.toLowerCase())
{
result.push(j[i].pid);
if (options == null || options.path.toLowerCase() == j[i].path.toLowerCase())
{
result.push(j[i].pid);
}
}
}
});