Home > Windows API > Turning monitor off

Turning monitor off

Wow man how to do this! Simple, just one line of code to send your monitor into standby mode.

::PostMessage( m_hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, 2 );

Do this using a timer and you will have your monitor turned off every 1 second which prevents anyone from turning your monitor on because it goes into standby mode every 1 second ;).

It’s not that secure but still it’s fun or use this to trick your IT friends! 🙂

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: