Got rid of CLIENT_GetProcessInfo.
This commit is contained in:
parent
ca1bc866cf
commit
eafae34251
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue