從ProcessID如何得知其hwnd(編號:4763)

用shell起動一程式,如pid=shell("c:\pe2.exe",vbNormalFocus),要呼叫那一個api才能得知其所對應視窗代碼hwnd,亦即從pid求得hwnd?