Sumber Kode

How to turn the monitor on and off

  • delphibasics
  • Nov 19' 14
  • Delphi
  • 129
  • 277
  • United States
const
  SC_MONITORPOWER= $F170;

// To turn off the monitor
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2);

// To turn on the monitor
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, -1);
Powered by
Pasar Kode Partner

Share

  • Tags :
comments powered by Disqus

Kode Terkait

How to get the file type description for a file

Store more than 64 KB in a TRichEdit

Introduction to using DLLs in Delphi

Multiple Document Interface [MDI] Example

Owner Draw - ComboBox

How to allow or disallow program shutdown in Delphi

Delete the relocations from a PE file.

Owner Draw - DB Grid

Low Level Utilities - Resource Package

MiscUnits - Resource Package



Kategori