What in the devil?

What (in) the devil?

interrog. What has happened?; What? (Often with the force of an exclamation.) What the devil? Who are you? What are you doing in my room?