Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

More fun with PDMWorks API 1

Status
Not open for further replies.

PDMAdmin

Mechanical
Apr 21, 2004
488
We are trying to find a way to use the PDMWorks API to detect whether the PDMWorks service is running or not. (All the API functions I have found seem to assume that the service is already running.) For various reasons (mainly related to data backup), we will be shutting the PDMWorks service down and restarting it once or twice a day, so it is critical for our scripts to be able to find out when the service has been restarted. I thought of using PDMWorks triggers, but the built-in triggers only apply to events within PDMWorks after it has already started.

Does anyone know of a good way to do this, or are we out of luck?
 
 0
Replies continue below

Recommended for you

To determine if an application is actually running, you need to access the Windows process list using Windows API calls. You won't actually be using the application's API to do this.

I've looked into doing this just to determine if SW is running. It's a bit of a pain, but it can be done. I think the whole process starts with enumerating all processes. As far as I know, there is no single call to inquire directly if a specific process or application is running.

Here's a page that might help:
<
[bat]Due to illness, the part of The Tick will be played by... The Tick.[bat]
 
That might just do the trick. Thanks for the help, Tick.
 
 0
Status
Not open for further replies.

Part and Inventory Search

Sponsor