Order of OpenGL context creation

Roughly what is the correct order of the various Windows interfacing functions needed to get into a ready OpenGL context? I’ve seen examples fullscreen changes both before and after window creations, sometimes done through a WM_CREATE event. I’m looking for the method that is fastest and causes the least amount of potential problems, if any.

See this wiki page. Or look at the source code for any open-source toolkit, e.g. GLUT, GLFW, or SDL.