Store the window configuration of all frames in register REGISTER. Use C-x r j to restore the configuration. Argument is a character, naming the register.