|
-
January 10th, 2000, 03:20 PM
#1
Getting Process ID from Word
I have a makro in Word and want to get the handle to my Word. My makro starts an external process which is waiting (with WaitForSingleObject) until word is closed and then does some things. So therefor I need the handle to my word.
Does anyone know how I can get this.
mfG Pueromane
-
January 11th, 2000, 03:06 AM
#2
Re: Getting Process ID from Word
there are quite a few handles you might want to get.
if you want to get the window handle of your word instance, try FindWindow API or use GetActiveWindow.
If you need the process handle from within the current makro try GetCurrentProcess API
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|