[英]Check if an elf executable is running with GUI or CUI on UNIX
In Windows you can check if IMAGE_OPTIONAL_HEADERS.Subsystem from the PE header is equal to either IMAGE_SUBSYSTEM_WIN_GUI or IMAGE_SUBSYSTEM_WIN_CUI. 在Windows中,您可以检查PE标头中的IMAGE_OPTIONAL_HEADERS.Subsystem是否等于IMAGE_SUBSYSTEM_WIN_GUI或IMAGE_SUBSYSTEM_WIN_CUI。
Is there a UNIX/ELF equivalent? 是否有等效的UNIX / ELF?
I've checked 我检查了
https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
along with general Google and 以及一般的Google和
http://linux.die.net/man/5/elf http://linux.die.net/man/5/elf
a few times but I haven't found anything. 几次,但我什么都没找到。
Is there a UNIX/ELF equivalent? 是否有等效的UNIX / ELF?
No. UNIX has no concept of a GUI or CUI Subsystem, so the question "what subsystem does this executable use?" 否。UNIX没有GUI或CUI子系统的概念,因此问题“此可执行文件使用什么子系统?” is completely meaningless. 是完全没有意义的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.