I have 2 pieces of freeware (one dedicated, one a suite of utilities) that will turn my PC's monitor off. I like to be able to hit my monitor off with a double click on a desktop icon.

Both these pieces of freeware don't do the job properly (sometimes), so I thought I'd look in to writing such a utility myself and do it properly.

So I know it's possible to do, probably through importing a DLL, but I can't seem to find out which one.

Can someone point me in the right direction please?

Thanks.