Added cmd line in new_process request.

This commit is contained in:
Alexandre Julliard 1999-03-27 16:21:05 +00:00
parent 4cf15118eb
commit 1c40024b15
3 changed files with 6 additions and 3 deletions

View File

@ -49,6 +49,7 @@ struct new_process_request
int hstdin; /* handle for stdin */
int hstdout; /* handle for stdout */
int hstderr; /* handle for stderr */
char cmd_line[0]; /* command line */
};
struct new_process_reply
{

View File

@ -421,7 +421,8 @@ PDB *PROCESS_Create( NE_MODULE *pModule, LPCSTR cmd_line, LPCSTR env,
req.hstdout = GetStdHandle( STD_OUTPUT_HANDLE );
req.hstderr = GetStdHandle( STD_ERROR_HANDLE );
}
CLIENT_SendRequest( REQ_NEW_PROCESS, -1, 1, &req, sizeof(req) );
CLIENT_SendRequest( REQ_NEW_PROCESS, -1, 2,
&req, sizeof(req), cmd_line, strlen(cmd_line) + 1 );
if (CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL )) goto error;
pdb->server_pid = reply.pid;
info->hProcess = reply.handle;

View File

@ -13,8 +13,9 @@ static int dump_new_process_request( struct new_process_request *req, int len )
fprintf( stderr, " start_flags=%d,", req->start_flags );
fprintf( stderr, " hstdin=%d,", req->hstdin );
fprintf( stderr, " hstdout=%d,", req->hstdout );
fprintf( stderr, " hstderr=%d", req->hstderr );
return (int)sizeof(*req);
fprintf( stderr, " hstderr=%d,", req->hstderr );
fprintf( stderr, " cmd_line=\"%.*s\"", len - (int)sizeof(*req), (char *)(req+1) );
return len;
}
static int dump_new_process_reply( struct new_process_reply *req, int len )