I want to detect all the executable files regardless of the file extension. I tried to do this with GetBinaryType but this API just detect .EXE and .COM file. How to detect all executable file.
DWORD binaryType;
if(GetBinaryType("1.dll",&binaryType))
{
if(binaryType >= 0 && binaryType < 7)
cout << "ok";
}
Aucun commentaire:
Enregistrer un commentaire