Skip to main content

CreateProcess returns zero, i.e. function fails

  • February 15, 2013
  • 0 replies
  • 1 view

Problem:

When calling the WinAPI function CreateProcess returns a zero value, this means the function failed.

Resolution:

Review the following details:

the number of parameters

the order of parameters (**command line is the 2nd parameter)

the size of parameters

the command line is null-terminated

the function name is prefixed with "A", i.e. CreateProcessA

the function is called with call convention 74

the program is compiled with CASE and DEFAULTBYE(00) directives

Old KB# 3803