SetWindowVSync( win, flag )

Enables or Disables VSync in a window

Example: