Getting TID from PID

Get help with using AutoHotkey and its commands and hotkeys
SvenBent
Posts: 266
Joined: 09 Aug 2015, 01:34

Getting TID from PID

17 Oct 2016, 17:36

Is there a way to get the TID's from a PID ?
I havent been able to find a method looking at MSDN ressources
Drugoy
Posts: 48
Joined: 11 Jun 2016, 07:37
GitHub: Drugoy

Re: Getting TID from PID

17 Oct 2016, 18:07

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Code: Select all

processID_N := 2016
For thread In ComObjGet("winmgmts:").ExecQuery("SELECT Handle FROM Win32_Thread WHERE ProcessHandle = " processID_N)
	MsgBox, % thread.Handle
User avatar
jNizM
Posts: 2560
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Contact:

Re: Getting TID from PID

18 Oct 2016, 01:03

[AHK] 1.1.30.03 x64 Unicode | [WIN] 10 Pro (Version 1909) x64 | [GitHub] Profile
Donations are appreciated if I could help you

Return to “Ask For Help”

Who is online

Users browsing this forum: au6, Bing [Bot], BushMange, Google [Bot], howardb1, MannyKSoSo, VACO BenQ, w0z and 180 guests