Alexandre Julliard : kernel32: Add a helper function to fill object attributes in Open* functions.