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

Re: Error with CreateProcess API by Bruce

Bruce
Thu Jul 28 08:22:24 CDT 2005

I don't see anything wrong with that call, could be a problem with your
error handling. Does the process start? You might also want to set the
path for the app \\Windows\Repllog.exe

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member




Re: Error with CreateProcess API by Zhongwei

Zhongwei
Thu Jul 28 08:29:51 CDT 2005

Should "repllog.exe" be "\\windows\\repllog.exe"?

--
Zhongwei Wang
Applied Data Systems
www.applieddata.net
Application - Ready embedded systems
Microsoft Windows Embedded Partner
Gold Level Member


"liawsw" <liawsw@discussions.microsoft.com> wrote in message
news:88F3BDAE-F887-457F-BC04-273CC070F3B1@microsoft.com...
> Hi