Basically I need a program that will sort windows .exe\'s from the console counterparts.
A file scanner:
SortExe(file exe) { if (IsPeWindows(exe)
Pass SHGFI_EXETYPE to SHGetFileInfo() & examine the hi/loword of the return value as explained in the link.
SHGFI_EXETYPE