I turned off the computer monitor with this command
SendMessage(f.Handle, WM_SYSCOMMAND, (IntPtr)SC_MONITORPOWER, (IntPtr)(turnOff ? 2 : -1));
Is it possible to connect a monitor to prevent it or to perform some function?
See here .
Source: https://habr.com/ru/post/1305144/More articles:XML schema to restrict one field based on another - xmlcan the length of two xml lists be defined as mandatory for peers? - listLimit attribute based element values - xmlHow to use attribute value as discriminator to select polymorphic XML type? - polymorphismCannot view dropdown in Excel VBA - excel-vbaVB.NET: changing the opacity of the background - vb.netHow to handle BL cache for multiple web applications? - c #How to check xml node value in XSD against its neighbor xml node value - xmlNamespace Conflict Resolution - c ++Java apache poi sets cell formula - javaAll Articles