Alexandre Julliard : server: Store the wait structure in the wait entry and add an accessor function for the thread .