×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

More fun with PDMWorks API

More fun with PDMWorks API

More fun with PDMWorks API

(OP)
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?

RE: More fun with PDMWorks API

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:
<http://www.thescarms.com/vbasic/RunningProcs.asp>

Due to illness, the part of The Tick will be played by... The Tick.
http://www.EsoxRepublic.com

RE: More fun with PDMWorks API

(OP)
That might just do the trick.  Thanks for the help, Tick.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources