Win32API sys_IsAppLoaded

Jim Hays (5/29/14 2:05PM)
Keisuke Miyako (5/30/14 12:48AM)


Jim Hays (5/29/14 2:05 PM)

<CAN0WjyUM3TJvNB7paUw2iVThAVk+PHpgD-Ye2X-MDae1Xfd=-w@mail.gmail.com>

We found a case where the function did not return 1, even though the
process we were looking for was already running. ?=A0We use this call
to
detect if Outlook is running before we try to send email. ?For
example:

If (sys_IsAppLoaded ("OUTLOOK.EXE")=1)
// it's running
Else
// we might launch it
End if

We found a user's machine (Windows 7, Office 2010) where there were
about
1000 instances of "iexplore" in the Task Manager. ?=A0(Don't you love
Internet Explorer? ?Clearly, something is wrong - their IT are working
on
that).

But, sys_IsAppLoaded would return zero, even though Outlook.exe was
running
and listed in the Task Manager processes.

I'm not looking for any change to the Win32API plugin. ?Just something
to
be aware of.

HTH,

Jim

Keisuke Miyako (5/30/14 12:48 AM)

if an application is launched by VBA WScript.CreateObject(), then you
can
end up with many instances of the same application.

http://msdn.microsoft.com/en-us/library/office/aa220083(v=office.11).asp
x

On 2014/05/30 3:05, "Jim Hays" <jghays7@... wrote:

color><param>00000,0000,DDEE/param>tthere were about
1000 instances of "iexplore" in the Task Manager. =A0=A0(Don't you
love
Internet Explorer? =A0Clearly, something is wrong - their IT are
working
on
that).
/color>

Reply to this message

Summary created 5/30/14 at 9:17AM by Intellex Corporation

Comments welcome at: feedback@intellexcorp.com