scuzz1
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
"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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to link with 'psapi.lib' - either add that to your Visual Studio project or use
#pragma comment(lib,"psapi.lib")
#pragma comment(lib,"psapi.lib")
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
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
ASKER
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