1、獲取當前ProcessID。
GetCurrentProcess
2、執行cmd或PowerShell
cmd:wmic process where "processid=15844" get /format:list
PowerShell:Get-Process -id 15844 | Format-List *
3、相關指標的具體含義請參考:
【1】https://learn.microsoft.com/zh-cn/windows/win32/cimwin32prov/win32-process
【2】https://learn.microsoft.com/zh-cn/dotnet/api/system.diagnostics.process?view=net-8.0