Who know the winAPI function which can be used in LotusScript?

Actually, I want to get the information that indicates whether a process(sucha as excel.exe) is running in operation system memory?

The situation is like that: when running a agent which exports data to excel, there will be an error if user lanched excel before the action. The reason is there exists a excel.exe process in memory. So, I want to detect if there is a excel.exe process in memory before running the agent.

I try to solve it by using winAPI in LS.

But I just cann’t find the right function.

Or anyone has some effective solution?

Thx very much!

Subject: Who know the winAPI function which can be used in LotusScript?

Sorry, here is the link:http://vbnet.mvps.org/

Subject: RE: Who know the winAPI function which can be used in LotusScript?

try http://www.eknori.de/tipps/detail.php?nr=87&kategorie=tipps

Subject: Who know the winAPI function which can be used in LotusScript?

Hey May, I know there are ways to do this, although I have not had the immediate need. Here is a link to a site with some useful vb code, nicely categorized, where you might find what you are looking for…very easy to convert to LS. HTH.

-Andy

Subject: Who know the winAPI function which can be used in LotusScript?

I think the function you need is FindWindow (in user32.dll). You can call it like this:

HResult = FindWindow(“EXCEL7”,NULL). If Excel is running, it should return a non-zero value.

The ‘EXCEL7’ string represents the window class name. I think this is is valid for Excel2000.