server: Return the process CPU in the get_process_info request.
This commit is contained in:
parent
5ce04f7ffc
commit
6056e8a52b
|
@ -693,6 +693,8 @@ struct get_process_info_reply
|
||||||
timeout_t end_time;
|
timeout_t end_time;
|
||||||
int exit_code;
|
int exit_code;
|
||||||
int priority;
|
int priority;
|
||||||
|
cpu_type_t cpu;
|
||||||
|
char __pad_60[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -5310,6 +5312,6 @@ union generic_reply
|
||||||
struct set_window_layered_info_reply set_window_layered_info_reply;
|
struct set_window_layered_info_reply set_window_layered_info_reply;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SERVER_PROTOCOL_VERSION 386
|
#define SERVER_PROTOCOL_VERSION 387
|
||||||
|
|
||||||
#endif /* __WINE_WINE_SERVER_PROTOCOL_H */
|
#endif /* __WINE_WINE_SERVER_PROTOCOL_H */
|
||||||
|
|
|
@ -1068,6 +1068,7 @@ DECL_HANDLER(get_process_info)
|
||||||
reply->peb = process->peb;
|
reply->peb = process->peb;
|
||||||
reply->start_time = process->start_time;
|
reply->start_time = process->start_time;
|
||||||
reply->end_time = process->end_time;
|
reply->end_time = process->end_time;
|
||||||
|
reply->cpu = process->cpu;
|
||||||
release_object( process );
|
release_object( process );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -660,6 +660,7 @@ typedef union
|
||||||
timeout_t end_time; /* process end time */
|
timeout_t end_time; /* process end time */
|
||||||
int exit_code; /* process exit code */
|
int exit_code; /* process exit code */
|
||||||
int priority; /* priority class */
|
int priority; /* priority class */
|
||||||
|
cpu_type_t cpu; /* CPU that this process is running on */
|
||||||
@END
|
@END
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -694,7 +694,8 @@ C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, start_time) == 32 );
|
||||||
C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, end_time) == 40 );
|
C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, end_time) == 40 );
|
||||||
C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, exit_code) == 48 );
|
C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, exit_code) == 48 );
|
||||||
C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, priority) == 52 );
|
C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, priority) == 52 );
|
||||||
C_ASSERT( sizeof(struct get_process_info_reply) == 56 );
|
C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, cpu) == 56 );
|
||||||
|
C_ASSERT( sizeof(struct get_process_info_reply) == 64 );
|
||||||
C_ASSERT( FIELD_OFFSET(struct set_process_info_request, handle) == 12 );
|
C_ASSERT( FIELD_OFFSET(struct set_process_info_request, handle) == 12 );
|
||||||
C_ASSERT( FIELD_OFFSET(struct set_process_info_request, mask) == 16 );
|
C_ASSERT( FIELD_OFFSET(struct set_process_info_request, mask) == 16 );
|
||||||
C_ASSERT( FIELD_OFFSET(struct set_process_info_request, priority) == 20 );
|
C_ASSERT( FIELD_OFFSET(struct set_process_info_request, priority) == 20 );
|
||||||
|
|
|
@ -1152,6 +1152,7 @@ static void dump_get_process_info_reply( const struct get_process_info_reply *re
|
||||||
dump_timeout( ", end_time=", &req->end_time );
|
dump_timeout( ", end_time=", &req->end_time );
|
||||||
fprintf( stderr, ", exit_code=%d", req->exit_code );
|
fprintf( stderr, ", exit_code=%d", req->exit_code );
|
||||||
fprintf( stderr, ", priority=%d", req->priority );
|
fprintf( stderr, ", priority=%d", req->priority );
|
||||||
|
dump_cpu_type( ", cpu=", &req->cpu );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dump_set_process_info_request( const struct set_process_info_request *req )
|
static void dump_set_process_info_request( const struct set_process_info_request *req )
|
||||||
|
|
Loading…
Reference in New Issue