I am in the stone ages on this project, but is there a way in VB6 to get the Process ID of an instance of Word launched by VB?
For example, somthing like this:
========================================
Dim WordPID as integer
Dim objWD as Word.Application
Set objWD = CreateObject("Word.Application")
WordPID = objWD.???
========================================
The user will have Word already open and the application may have several instances of WinWord.exe open during the application's processing time. I would like to be able to identify which process id to kill if needed in errorhandling.
Thanks
For example, somthing like this:
========================================
Dim WordPID as integer
Dim objWD as Word.Application
Set objWD = CreateObject("Word.Application")
WordPID = objWD.???
========================================
The user will have Word already open and the application may have several instances of WinWord.exe open during the application's processing time. I would like to be able to identify which process id to kill if needed in errorhandling.
Thanks