mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-01 01:49:06 +08:00
Show User name
This commit is contained in:
parent
c7f6eda05a
commit
5556107301
@ -92,5 +92,11 @@ namespace FileLocksmith::Interop
|
||||
|
||||
return wait_result == WAIT_OBJECT_0;
|
||||
}
|
||||
|
||||
static System::String^ PidToUser(System::UInt32 pid)
|
||||
{
|
||||
auto user_cpp = pid_to_user(pid);
|
||||
return from_wstring_view(user_cpp);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -34,7 +34,8 @@ namespace FileLocksmithUI
|
||||
|
||||
processPid.Text = PowerToys.FileLocksmithUI.Properties.Resources.ProcessId + ": " + pid;
|
||||
processFileCount.Text = PowerToys.FileLocksmithUI.Properties.Resources.FilesUsed + ": " + numFiles;
|
||||
processUser.Text = PowerToys.FileLocksmithUI.Properties.Resources.User + ": " + "<TODO PID TO USER>";
|
||||
processUser.Text = PowerToys.FileLocksmithUI.Properties.Resources.User + ": " +
|
||||
FileLocksmith.Interop.NativeMethods.PidToUser(pid);
|
||||
}
|
||||
|
||||
public void AddPath(string path)
|
||||
|
Loading…
Reference in New Issue
Block a user