Archive
Posts Tagged ‘WM_SYSCOMMAND’
Starting screensaver properly
Once again just one line of code…
::PostMessage( m_hSomeWnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0 );
The moment you move your mouse or press any key screensaver disappears, so watch out! 😉
Categories: Windows API
Tags: PostMessage, Screensaver, SC_SCREENSAVE, WM_SYSCOMMAND
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! 🙂
Categories: Windows API
Tags: PostMessage, SC_MONITORPOWER, Turn computer monitor off, WM_SYSCOMMAND
Display start menu easily!
Just one line of code…
// Display start menu pSomeWnd->SendMessage( WM_SYSCOMMAND, SC_TASKLIST, 0 );
Categories: Windows API
Tags: SC_TASKLIST, SendMessage, Start menu, WM_SYSCOMMAND
The Old Rugged Cross

Daily Manna
Subscribe to get a bible verse everyday on your mobile for free.
Copyright and Disclaimer
Copyright: ©Nibu Babu Thomas and bit and bytes [2007 - 2009]. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Nibu Babu Thomas and bits and bytes with appropriate and specific direction to the original content.
Disclaimer: These postings are provided "AS IS" with no warranties, and confer no rights.
Disclaimer: These postings are provided "AS IS" with no warranties, and confer no rights.
Categories
- .net (4)
- Announcements (3)
- ATL (2)
- C Programming (9)
- C++, VC++ (71)
- STL (5)
- CodeProject (1)
- COM (15)
- Debugging (7)
- Development Tools (5)
- General (10)
- MVP Stuff (1)
- MVP Summit 2008 (5)
- HTML (1)
- MFC (51)
- My thoughts (3)
- Networking (1)
- Polls (2)
- Strange bugs (5)
- Undocumented WinAPI (5)
- Visual studio (20)
- Windows (8)
- Windows API (175)
.net
ANSI
ATL
bugs
CComboBox
CComPtr
CDialog
CFileDialog
Clipboard
COleSafeArray
COLORREF
COM
Console API
Console Application
cout
CreateCompatibleDC
CreateProcess
CStatusBar
CString
Debug
Debugger
Debugging
dumpbin
Feature pack
GDI
GetDriveType
GetLogicalDriveStrings
GetSysColorBrush
GetSystemMenu
GetSystemMetrics
IADsUser
IsIconic
iterator
MessageBox
Mouse
MVP
MVP Summit
MVP Summit 2008
Nibu
Nibu babu thomas
Nibu Thomas
OnInitDialog
OpenProcessToken
PostMessage
Ray Ozzie
Redmond
SetBkMode
SetWindowPos
SHFILEINFO
ShGetFileInfo
std
std::string
std::transform
Steve Ballmer
stl
Summit
SystemParametersInfo
TCHAR
TextOut
TR1
UNICODE
VB.net
VC6
VC8
VC9
VC Debugger
vector
Visual studio
VS2005
VS2008
Watch window
WM_CTLCOLOR
WM_SYSCOMMAND
XP
XP Themes