How to use wglSwapBuffers?

Hi
I want to use wglSwapBuffers in my examples-- I have seen this function in the book "More OpenGL Game Programming".However I have not found this function in wglext.h( or wglew.h ).I have seen a similar function called wglSwapBuffersMscOML() however. How to disable VSYNC with these functions?
-Ehsan-

Re: How to use wglSwapBuffers?

1.) There is a Win32 API function wglSwapLayerBuffers().
The SwapBuffers() function you might know is just a wrapper on top of this. SwapBuffers() swaps all color buffers from back to front.
With wglSwapLayerBuffers() you can swap mainplane and overlay plane independently. That is, if your OpenGL implementation supports overlays and you use them.
If not, SwapBuffers() is the same as wglSwapLayerBuffers(hdc, WGL_SWAP_MAIN_PLANE).

If your OpenGL implementaton supports this and returns a valid function pointer for it, call wglSwapIntervalEXT(0) and both of the above mentioned swap buffer calls should stop waiting on the next vsync.

In most graphics drivers there is a setting in their control panels which can be used to ovveride this.