Application fails in CreateProcess(...) call on Windows 2016 Server

Belyy, Andrey 1 Reputation point
2021-02-01T21:03:03.017+00:00

Customer running our application on Windows 2016 server. Application fails in CreateProcess(...) call with error 193(0xc1): "%1 is not a valid Win32 application".
But works fine on other systems(even 2016). Mystery. Maybe some security settings?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,678 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Drake Wu - MSFT 991 Reputation points
    2021-02-02T05:56:20.327+00:00

    Hi @Belyy, Andrey You could check this answer on stackoverflow:
    The most likely explanations for that error are:

    1. The file you are attempting to load is not an executable file.
    2. There is a problem loading one of the dependencies of the executable. Check if there is a mismatch between your application and dependency.

    In addition, the line strCMD += _T("\\bin\\al_engine.exe \"); seems like it cannot be compiled, it should be strCMD += _T("\\bin\\al_engine.exe "); or strCMD += _T("\\bin\\al_engine.exe \\");


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Belyy, Andrey 1 Reputation point
    2021-02-08T05:03:11.883+00:00

    The same command executes just fine in cmd.com . Checked many times. It has something to do with environment

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.