How to tell if a windows PE file is a console subsystem or a windows subsystem programmatically?

前端 未结 1 954
一整个雨季
一整个雨季 2020-12-18 14:08

Basically I need a program that will sort windows .exe\'s from the console counterparts.

A file scanner:

SortExe(file exe) 
{
 if (IsPeWindows(exe)         


        
相关标签:
1条回答
  • 2020-12-18 14:43

    Pass SHGFI_EXETYPE to SHGetFileInfo() & examine the hi/loword of the return value as explained in the link.

    0 讨论(0)
提交回复
热议问题