CHttpServer::GetProgramExitCode Method  
 
BOOL GetProgramExitCode(
  UINT nClientId,  
  DWORD& dwExitCode  
);

Return the exit code of the last program executed by the client.

Parameters

nClientId
An unsigned integer which uniquely identifies the client session.
dwExitCode
An unsigned integer that will contain the program exit code when the method returns.

Return Value

If the method succeeds, the return value is non-zero. If the client ID does not specify a valid client session, the method will return zero.

Remarks

The GetProgramExitCode method returns the exit code of a registered CGI program or script that was executed. By convention, most programs return an exit code in the range of 0-255, with an exit code of zero indicating success. The exit code is commonly used by programs to communicate status information back to the server application.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: cshtsv11.lib

See Also

GetProgramOutput, RegisterProgram