fIsAppRunning - Need Outlook class name

  • Thread starter Thread starter Nicholas Scarpinato
  • Start date Start date
N

Nicholas Scarpinato

I'm using Dev Ashish's "fIsAppRunning" code to determine if Outlook is
running, and if not, open Outlook. There's just one problem... Outlook isn't
in the list of applications that the code checks for. I need to know the
correct ClassName for the Outlook application and I have no idea how to go
about finding it. Does anyone happen to know the ClassName, or if nothing
else, how to find out what it is?
 
Nicholas Scarpinato said:
I'm using Dev Ashish's "fIsAppRunning" code to determine if Outlook is
running, and if not, open Outlook. There's just one problem... Outlook
isn't
in the list of applications that the code checks for. I need to know the
correct ClassName for the Outlook application and I have no idea how to go
about finding it. Does anyone happen to know the ClassName, or if nothing
else, how to find out what it is?


Using the fEnumWindows function posted here:

http://www.mvps.org/access/api/api0013.htm
API: Get Class name of a running app

(also by Dev Ashish, by the way), it looks to me like the window class is

rctrl_renwnd32

I don't know how universal that is, or whether it may be different in
different versions. Try it on your system and see what you get.
 
Thank you Dirk. I actually did find the answer a few minutes ago and
"rctrl_renwnd32" works. I'm on Outlook 2007, so I'll need to test that with
my co-workers who are still on Outlook 2003, but I think it's the same.

I should have known that Dev had written code to find the classnames...
don't know why I didn't look for that myself. (Actually I do know... it's
Monday and I'm not quite awake yet, lol.)
 
Back
Top