What am I missing here?
Omnia.
I think the problem is when i read registry.
I do that for block screen for not go in stand by mode.
Check these registry if you have it:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts\BattSuspendTimeout
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts\BattSuspendTimeoutSave
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts\ACSuspendTimeout
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts\ACSuspendTimeoutSave
HKEY_CURRENT_USER\ControlPanel\Backlight\BatteryTimeout
HKEY_CURRENT_USER\ControlPanel\Backlight\BatteryTimeoutUnchecked
HKEY_CURRENT_USER\ControlPanel\Backlight\ACTimeout
HKEY_CURRENT_USER\ControlPanel\Backlight\ACTimeoutUnchecked
If you dont have these registry it is a problem i correct it in the next version, if i dont find it i set it to 0.
I think your problem is that i cant find any of these registry key and return error.
Bye