Attribute VB_Name = "modPreventSleep"
Option Explicit

Public Declare Function SetThreadExecutionState Lib "kernel32" (ByVal esFlags As Long) As Long

Public Const ES_SYSTEM_REQUIRED = 1&
Public Const ES_DISPLAY_REQUIRED = 2&
Public Const ES_USER_PRESENT = 4&
Public Const ES_CONTINUOUS = &H80000000
