I have task, need to get Thread Start Address from selected process or selected Thread.
$result = Get-Process -Name notepad -IncludeUserName
$Threads =@()
foreach ($ID in $result)
{
$Threads += Get-Process -ID $ID.ID | Select-Object -ExpandProperty Threads | Select-Object ID
}
I can get data like this
but start address thread don't get information like on Process Explorer.
I find some example with C# Low-Level Windows API Access, like i see this solution, but i need help to adopt the script Kernel32 : : CreateProcess to get PROCESS_INFORMATION on C++ and finally get Start Address of Threads.
Can anyone help me ?
I don't think that this task can be solved only by means of Powershell, so I look wider and see the solution in running C # or C ++ code inside powershell script.


