Got rid of CLIENT_GetProcessInfo.

This commit is contained in:
Alexandre Julliard 1999-01-01 18:59:01 +00:00
parent ca1bc866cf
commit eafae34251
1 changed files with 4 additions and 3 deletions

View File

@ -887,12 +887,13 @@ BOOL32 WINAPI GetExitCodeProcess(
HANDLE32 hProcess, /* [I] handle to the process */ HANDLE32 hProcess, /* [I] handle to the process */
LPDWORD lpExitCode) /* [O] address to receive termination status */ LPDWORD lpExitCode) /* [O] address to receive termination status */
{ {
struct get_process_info_reply info; struct get_process_info_reply reply;
int handle = HANDLE_GetServerHandle( PROCESS_Current(), hProcess, int handle = HANDLE_GetServerHandle( PROCESS_Current(), hProcess,
K32OBJ_PROCESS, PROCESS_QUERY_INFORMATION ); K32OBJ_PROCESS, PROCESS_QUERY_INFORMATION );
if (CLIENT_GetProcessInfo( handle, &info )) return FALSE; CLIENT_SendRequest( REQ_GET_PROCESS_INFO, -1, 1, &handle, sizeof(handle) );
if (lpExitCode) *lpExitCode = info.exit_code; if (CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL )) return FALSE;
if (lpExitCode) *lpExitCode = reply.exit_code;
return TRUE; return TRUE;
} }