Zebediah Figura : setupapi: Separate the entire copy operation into a helper function.