Basically I need a program that will sort windows .exe's from the console counterparts.
A file scanner:
SortExe(file exe)
{
if (IsPeWindows(exe))
{
AddToList1(exe);
}
else if (IsPeConsole())
{
AddToList2(exe);
}
}
How do I implement IsPeWindows or IsPeConsole() ?
I do not particularly mind what language solutions come in so long as it's one of c, c++, c# or visual basic.
将SHGFI_EXETYPE
传递给SHGetFileInfo()
并按照链接中的说明检查返回值的高/低位。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.