Read .exe File in c++

#include<iostream>
#include<string>
#include<Windows.h>
using namespace std;

int main()
{
string fileName="binary.exe";
int fileExc=WinExec(fileName.c_str(),SW_SHOW);
if(fileExc>31)
{
              cout <<fileName <<" : file succes fully open: "<< endl;
          
}
else
if(fileExc==0)
{
              cout << "The system is out of memory : "<< endl;
}
else
if(ERROR_BAD_FORMAT)
{
                    cout << "File is invalid : " << endl;
                   
}
else
if(ERROR_FILE_NOT_FOUND)
{
                        cout << "file Not Found : " << endl;
}
else
if(ERROR_PATH_NOT_FOUND)
{   
      cout << "File Path Not found....  "<<  endl;
}
system("pause");
return 0;
}