Programatically detect if a process is running in Batch or Interactive mode in the "C" language.

Thad T 26 Reputation points
2023-10-09T17:39:50.0566667+00:00

I'm seeking a way to detect whether a process is currently running in Batch or in interactive mode via "C" code. I would like the function to return a value that represents the current mode - 1 for Batch mode and 0 for Interactive mode. Please let me know if you can help me with this.

Thank you! If so, GREAT!!.

Thad Thorpe

RSVP

Oct 9th, 2023

Windows development Windows API - Win32
Windows for business Windows Client for IT Pros User experience Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.