A
Arnaldo Fuziy
The function below was told to turn off, turn on and set the time for auto
suspending... But I couldn't get it to work... Could anyone help us?
Public Const SPI_SETBATTERYIDLETIMEOUT = 251
Public Const SPI_GETBATTERYIDLETIMEOUT = 252
Public Const SPI_SETEXTERNALIDLETIMEOUT = 253
Public Const SPI_GETEXTERNALIDLETIMEOUT = 253
Public Declare Function SystemParametersInfo Lib "Coredll" Alias
"SystemParametersInfoW" _
(ByVal uAction As Integer, _
ByVal uParam As Integer, _
ByRef lpvParam As Integer, _
ByVal fuWinIni As Integer) As Integer
Should be used like this:
Dim s As Integer
s = SystemParametersInfo(SPI_SETBATTERYIDLETIMEOUT, 0, 0, 0)
Thanks,
Arnaldo.
suspending... But I couldn't get it to work... Could anyone help us?
Public Const SPI_SETBATTERYIDLETIMEOUT = 251
Public Const SPI_GETBATTERYIDLETIMEOUT = 252
Public Const SPI_SETEXTERNALIDLETIMEOUT = 253
Public Const SPI_GETEXTERNALIDLETIMEOUT = 253
Public Declare Function SystemParametersInfo Lib "Coredll" Alias
"SystemParametersInfoW" _
(ByVal uAction As Integer, _
ByVal uParam As Integer, _
ByRef lpvParam As Integer, _
ByVal fuWinIni As Integer) As Integer
Should be used like this:
Dim s As Integer
s = SystemParametersInfo(SPI_SETBATTERYIDLETIMEOUT, 0, 0, 0)
Thanks,
Arnaldo.