CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Location
    Austria
    Posts
    53

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    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
  •  





Click Here to Expand Forum to Full Width

Featured