' AS POWER WIN32 DLL ' version 2.1 ' ' VB declarations for AS POWER WIN32 DLL functions ' ' October 2005. ' Copyright (c) AS Computer Software Private Declare function asGetCurrentVideoMode lib "aspow" (ByRef n1 as long, _ ByRef n2 as long, ByRef n3 as long, ByRef n4 as long) as Boolean Private Declare function asCanChangeVideoMode lib "aspow" (ByVal m_dwBitsPerPixel as long, _ ByVal m_dwWidth as long,ByVal m_dwHeight as long, ByVal m_dwFrequency as long) as long Private Declare function asChangeVideoModePermanently lib "aspow" (ByVal m_dwBitsPerPixel as long, _ ByVal m_dwWidth as long,ByVal m_dwHeight as long,ByVal m_dwFrequency as long) as long Private Declare function asChangeVideoModeTemporarily lib "aspow" (ByVal m_dwBitsPerPixel as long, _ ByVal m_dwWidth as long,ByVal m_dwHeight as long,ByVal m_dwFrequency as long) as long Private Declare function asLockWorkStation lib "aspow" () as Boolean Private Declare function asLockSetForegroundWindow lib "aspow" (ByVal n as integer) as Boolean Private Declare function asIsDebuggerPresent lib "aspow" () as Boolean Private Declare function asPerformShutdown lib "aspow" () as Boolean Private Declare function asPerformReboot lib "aspow" () as Boolean Private Declare function asPerformLogoff lib "aspow" () as Boolean Private Declare function asBlockInput lib "aspow"() as Boolean Private Declare function asUnblockInput lib "aspow" () as Boolean Private Declare function asSetPriorityReal lib "aspow" (ByVal nHWND as long) as Boolean Private Declare function asSetPriorityHigh lib "aspow" (ByVal nHWND as long) as Boolean Private Declare function asSetPriorityNormal lib "aspow" (ByVal nHWND as long) as Boolean Private Declare function asSetPriorityIdle lib "aspow" (ByVal nHWND as long) as Boolean Private Declare function asMinimizeAll lib "aspow" () Private Declare function asIsSafeMode lib "aspow" () as Boolean Private Declare function asIsDebugUser lib "aspow" () as Boolean Private Declare function asLockWUpdate lib "aspow"(ByVal nHWND as long) as Boolean Private Declare function asUnlockWUpdate lib "aspow" () as Boolean Private Declare Function asFileToRecycle lib "aspow" (ByVal ss as string) as Boolean Private Declare function asEnableScreenS lib "aspow" (ByVal n as Boolean) as Boolean Private Declare function asMonitorOff lib "aspow" () Private Declare function asSystemPowerSuspend lib "aspow" () as Boolean Private Declare function asSystemPowerHibernate lib "aspow" () as Boolean Private Declare function asProcSpeed lib "aspow" () as long Private Declare function asEmptyRB lib "aspow" () Private Declare function asIsUserAdmin lib "aspow" () as Boolean Private Declare function asSleepAndWakeUpS lib "aspow" (ByVal n as integer) as integer Private Declare function asSleepAndWakeUp lib "aspow" (ByVal nDay as integer,ByVal nH as Integer, _ ByVal nM as Integer,ByVal nS as Integer) as integer Private Declare function asOnlySetWakeUpTime lib "aspow" (ByVal nYear as integer, _ ByVal nMonth as Integer, ByVal nDay as integer,ByVal nH as Integer, _ ByVal nM as Integer,ByVal nS as Integer) as integer Private Declare function asCanHibernate lib "aspow" () as Boolean Private Declare function asCanSuspend lib "aspow" () as Boolean