I've searched so many hours since i've seen your post here, and finally, i think i have something that can help you.
I'm using
cwnd.dll to get each window opened. :
alias app.f {
tokenize 9 $1-
if ($6 == 0) && ($cwnd(isWindowVisible,$1)) && ($remove($2,",Program Manager)) aline @app $remove($2,")
}
alias appwin {
if ($window(@app)) window -c $v1
window @app
noop $cwnd(listing,app.f $1-)
}
alias cwnd {
if ($isid) {
var %res = $dll($scriptdircwnd.dll,$1,$2-)
if ($prop != $null) return $gettok(%res,$prop,32)
return %res
}
dll " $+ $scriptdircwnd.dll" $1-
}
So for me, there is just one thing that isn't a application of my taskbar and that is /aline to the window, but since i don't know if this happened on all windows version, i decided to let it.
/appwin to use it.
Hope this will help you
Edit : i've searched for a Com object, but found nothing...
Edit2 : i've edited the code : how are display the info and i add something to remove a window that isn't a application, look better now