Disable screensaver while recording

As I work with a notebook, I usually have my screensaver enabled (black screen + most importantly, lock computer when screensaver kicks in). When recording from an external source, it can happen that the screensaver kicks in and destroys the audio material (since it will cause buffer underruns for a short while). So I’d like to see an option in Wavelab on Windows to automatically disable / circumvent the screensaver while a recording is happening. There are several ways to do this, changing the WindowProc won’t help since that doesn’t work when a password is set, but tricking Windows into thinking that the mouse is moved using SendInput seems to help: http://stackoverflow.com/questions/463813/programmatically-prevent-windows-screensaver-from-starting