Preventing screensaver in glut app

How can I prevent the [Windows] screensaver from starting when running a glut-based application? I think I’ve read somewhere how to do it by taking care of specific windows messages in non-glut applications. Is there a similar method for glut applications?