node/lib/metasm/metasm/os/windows.rb
# check if the thread is alive and can be read with QUERY_INFO
# and optionally if it belongs to pid
check if the thread is alive and can be read with QUERY_INFO
and optionally if it belongs to pid
check if the thread is alive and can be read with QUERY_INFO and optionally if it belongs to pid
def check_tid(tid, pid=nil)
		if h = WinAPI.openthread(WinAPI::THREAD_QUERY_INFORMATION, 0, tid)
			WinAPI.closehandle(h)
			not pid or list_threads(pid).include?(tid)
		end
	end
def check_tid ( tid , pid = nil ) if h = WinAPI . openthread ( WinAPI :: THREAD_QUERY_INFORMATION , 0 , tid ) WinAPI . closehandle ( h ) not pid or list_threads ( pid ) . include? ( tid ) end end
check if the thread is alive and can be read with QUERY_INFO
and optionally if it belongs to pid
check if the thread is alive and can be read with QUERY_INFO and optionally if it belongs to pid
tid
pid