# Re: Urgent! Please help me!Problem on WindowAPI for vb6

Posted by dar on April 16, 1999 at 15:03:28:

In Reply to: Urgent! Please help me!Problem on WindowAPI for vb6 posted by Fai on April 14, 1999 at 15:31:23:

: How to get the Process ID of Application after the following
: ShellExecute 0, vbNullString, "" & FileName & "", "", "", SW_SHOWMAXIMIZED

Try API

id = FindWindow(s,"Microsoft Word")

this command will return the Process ID of Word

Follow Ups: