I recently finished a project but was then asked to make it into a service. I hit a problem in that I need to put the monitor into standby mode as part of this and odviously can't use the usual as there is no window to send a message to.
SendMessage( hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM)2 );
Is there a more direct way of getting the same functionallity that would work in a service and if so how? Thanks for any help given.