Solved

Is window a console window?

Posted on 2002-05-15
2
165 Views
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?)

0
Comment
Question by:Kann
2 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 200 total points
ID: 7013482
hi,
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 .
0
 
LVL 1

Expert Comment

by:pnh73
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.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now