Link to home
Start Free TrialLog in
Avatar of scuzz1
scuzz1Flag for United States of America

asked on

I need a way to check to see if msaccess.exe is running.

I looked in previous questions and the solution was a link to MS KB that is no longer available.

"How To Enumerate Applications Using Win32 APIs" is what the solution refered to. I can't seem to find a definative solution in MS. Does anyone know what API(s) I need to find out whether or not a user has a particular program up and running?

Jim

ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scuzz1

ASKER

I'm getting complaints about unresolved external symbols:

copybart.obj : error LNK2001: unresolved external symbol _EnumProcesses@12
copybart.obj : error LNK2001: unresolved external symbol _GetModuleBaseNameA@16
copybart.obj : error LNK2001: unresolved external symbol _EnumProcessModules@16

I'm using Visual C++ 6.0 and my project is a Win32 Console App using C as my source code.

I looked in psapi.h but don't see anything like those.

Jim
You need to link with 'psapi.lib' - either add that to your Visual Studio project or use

#pragma comment(lib,"psapi.lib")
Avatar of scuzz1

ASKER

I had to go find a copy of psapi.lib. It works great. Thanks a lot.
I was close before but I was in the reference section and it just showed the function. I needed to go to the using psapi section.
Even then it does not say anything about psapi.lib.

Thanks again.
Jim