Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect if a program is a Win32 console application. #1

Closed
jkells opened this issue May 11, 2012 · 3 comments
Closed

Detect if a program is a Win32 console application. #1

jkells opened this issue May 11, 2012 · 3 comments

Comments

@jkells
Copy link
Contributor

jkells commented May 11, 2012

Hi,

Can you think of any way to determine if the executable requires the hidden console window to work at runtime? It would be great if this code could be integrated into mintty somehow..

@roytam1
Copy link

roytam1 commented Sep 26, 2012

some ideas:

  • check PE header if it has CONSOLE flag set.
  • check Import Address Table if cygwin1.dll or msys-1.0.dll exists, if none exists, it will not be cygwin/msys executable.

@mintty
Copy link

mintty commented Aug 10, 2016

This would actually be something to be integrated into cygwin, not mintty, see
mintty/mintty#56 (comment)

@jkells jkells closed this as completed Sep 12, 2020
@mintty
Copy link

mintty commented Sep 12, 2020

Thanks for closing.
Actually, this feature is now included unconditionally since cygwin 3.1.0 and will be available by proper detection from cygwin 3.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants