Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3355966
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:27:29+00:00 2026-05-18T02:27:29+00:00

Due to the need to run a 15+ year old application I wish to

  • 0

Due to the need to run a 15+ year old application I wish to create a watchdog program to ensure a 16 bit application is running on a 32 bit version of Windows XP Pro and start it if necessary. Normally I’d use EnumWindows() to look for the application’s window. Unfortunately, this doesn’t work, or at least not reliably, for 16 bit apps.

Given that I have absolutely no control over the code in the application in question, how can I reliably detect whether or not it’s running? I’m coding this in C (not C++ or C#).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:27:30+00:00Added an answer on May 18, 2026 at 2:27 am

    You’ll probably need to enumerate processes (e.g., EnumProcesses with GetModuleFilenameEx or CreateToolhelp32Snapshot with Process32First and Process32Next). If you don’t find an instance of ntvdm.exe, then no 16-bit process is running, and you can stop there. If you do find an instance of ntvdm.exe, you can use VDMEnumTaskWOWEx to enumerate the 16-bit processes running in it.

    Back when it was still under the original owners, I posted an article on CodeGuru demonstrating how to do all of this. It’d take a bit of work to make it compile under a modern compiler (e.g., it’s old enough that it uses iostream.h instead of iostream, but the process enumeration part should still be pretty much right (though, looking at things, you’ll also need to enable the SeDebugPrivilege for it to work on Windows 7).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to run my development through nginx due to some complicated subdomain routing
We need to run reports at a scheduled time of the day. The application
I need to gain some run-time information about a C++ program, which is kinda
I'm in a bit of trouble and need to run a linux command as
Due to a security requirement all browsers that will run a web application we
due to some unavoidable reasons I need to disable Google Chrome's Chrome PDF Viewer
I need a reliable messaging framework that runs over http/https (due to client security
Due to specific requirements [*], I need a singly-linked list implementation that uses integer
I'm asking this out of curiosity rather than due to a real need to
I have an Event class. Due to the way dates are handled, we need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.