def get_threads(proc): return list_entry(proc.vm, types, proc.profile, proc.ThreadListHead.v(), "_ETHREAD", fieldname="ThreadListEntry")
def get_threads(proc): """Get a list of all threads for a process""" return list_entry(proc.vm, types, proc.profile, proc.ThreadListHead.v(), "_ETHREAD", fieldname="ThreadListEntry")
def each_irp(thread): return list_entry(thread.vm, types, thread.profile, thread.IrpList.v(), '_IRP', fieldname='ThreadListEntry')
def each_thread(proc): return list_entry(proc.vm, types, proc.profile, proc.ThreadListHead.v(), '_ETHREAD', fieldname='ThreadListEntry')