mercredi 24 janvier 2018

How to detect all executable file in windows including(exe, dll, msi, vxd, sys and etc)

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