11-06-2015, 09:07 AM
For records and fellows interested
Function ProcessusEnfants
called by this
Macro Macro12
Maybe a native function in next QM version....
Function ProcessusEnfants
function ARRAY(str)&a str'&b
str name
int pidParent=ProcessNameToId(b)
__Handle hs=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS 0)
PROCESSENTRY32 p.dwSize=sizeof(p)
Process32First(hs &p)
rep
,if p.th32ParentProcessID=pidParent
,,
,,name=F"{&p.szExeFile%%s}"
,,a[]=name
,if(!Process32Next(hs &p)) breakcalled by this
Macro Macro12
Maybe a native function in next QM version....
