Error with CreateProcess API



Hi
I am running a code to start a new process with the CreateProcess API

PROCESS_INFORMATION procinfo;
CreateProcess(_T("repllog.exe"),NULL, NULL, NULL, FALSE, 0, NULL, NULL,
NULL, &procinfo);

However the OS keeps reporting error with error code 87 decimal or 57 Hex.
I have serached the documentation for error code 87 decimal is
"The parameter is incorrect. ERROR_INVALID_PARAMETER "

I tried with other exe file, but produces the same error.

Could anyone help.

Thanks

Rgds
LiawSW
.