Is it possible to know the current state of the display - enabled or disabled ?
FWH 17.04/xHarbour BCC7
#include "FiveWin.ch"
#define MONITOR_DEFAULTTOPRIMARY 1
function Main()
local bResult
GetDevicePowerState( MonitorFromWindow( FindWindow( 0, 0 ), MONITOR_DEFAULTTOPRIMARY ), @bResult )
return nil
DLL32 Function GetDevicePowerState(hDevice AS DWORD, @bResult AS BOOL) AS BOOL PASCAL FROM "GetDevicePowerState" LIB "kernel32.dll"
DLL32 Function MonitorFromWindow(hDevice AS LONG, pr AS DWORD) AS BOOL PASCAL FROM "GetDevicePowerState" LIB "user32.dll"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 39 guests