Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more


Is window a console window?

Posted on 2002-05-15
Medium Priority
Last Modified: 2010-08-05
Is there a way to determine if a window is a console window in fullscreen if I have the window handle (from GetForegroundWindow)?
I need a solution with is OS independend. (The "GetClassname solution" is OS dependend. But perhaps there is a way with GetWindowLong or GetWindowWord or GetStartUpInfo or MonitorIsInTextMode?)

Question by:Kann
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Accepted Solution

inthe earned 800 total points
ID: 7013482
i had a look at this and i dont see any way except checking the class name.
the window styles etc seem the same as a normal window under win2000 ,i cant find anything to say "yes im a console window" or "no im a gui window" ,im not aware of any apis that can do it.
i tried stuff also like SetConsoleTitle() then doing a findowindow on the new title but was getting invald handle errors .

Expert Comment

ID: 9005827
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from inthe

Please leave any comments here within the next seven days.
Paul (pnh73)
EE Cleanup Volunteer

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question