ReactOS  0.4.15-dev-506-ga3ec01c
upssvc.h File Reference

Go to the source code of this file.

Macros

#define UPSAPI   DECLSPEC_IMPORT
 
#define UPS_ONLINE   1
 
#define UPS_ONBATTERY   2
 
#define UPS_LOWBATTERY   4
 
#define UPS_NOCOMM   8
 
#define UPS_CRITICAL   16
 
#define UPS_INITUNKNOWNERROR   0
 
#define UPS_INITOK   1
 
#define UPS_INITNOSUCHDRIVER   2
 
#define UPS_INITBADINTERFACE   3
 
#define UPS_INITREGISTRYERROR   4
 
#define UPS_INITCOMMOPENERROR   5
 
#define UPS_INITCOMMSETUPERROR   6
 

Functions

UPSAPI VOID NTAPI UPSCancelWait (VOID)
 
UPSAPI DWORD NTAPI UPSGetState (VOID)
 
UPSAPI DWORD NTAPI UPSInit (VOID)
 
UPSAPI VOID NTAPI UPSStop (VOID)
 
UPSAPI VOID NTAPI UPSTurnOff (IN DWORD aTurnOffDelay)
 
UPSAPI VOID NTAPI UPSWaitForStateChange (IN DWORD aCurrentState, IN DWORD anInterval)
 

Macro Definition Documentation

◆ UPS_CRITICAL

#define UPS_CRITICAL   16

Definition at line 41 of file upssvc.h.

◆ UPS_INITBADINTERFACE

#define UPS_INITBADINTERFACE   3

Definition at line 56 of file upssvc.h.

◆ UPS_INITCOMMOPENERROR

#define UPS_INITCOMMOPENERROR   5

Definition at line 58 of file upssvc.h.

◆ UPS_INITCOMMSETUPERROR

#define UPS_INITCOMMSETUPERROR   6

Definition at line 59 of file upssvc.h.

◆ UPS_INITNOSUCHDRIVER

#define UPS_INITNOSUCHDRIVER   2

Definition at line 55 of file upssvc.h.

◆ UPS_INITOK

#define UPS_INITOK   1

Definition at line 54 of file upssvc.h.

◆ UPS_INITREGISTRYERROR

#define UPS_INITREGISTRYERROR   4

Definition at line 57 of file upssvc.h.

◆ UPS_INITUNKNOWNERROR

#define UPS_INITUNKNOWNERROR   0

Definition at line 53 of file upssvc.h.

◆ UPS_LOWBATTERY

#define UPS_LOWBATTERY   4

Definition at line 39 of file upssvc.h.

◆ UPS_NOCOMM

#define UPS_NOCOMM   8

Definition at line 40 of file upssvc.h.

◆ UPS_ONBATTERY

#define UPS_ONBATTERY   2

Definition at line 38 of file upssvc.h.

◆ UPS_ONLINE

#define UPS_ONLINE   1

Definition at line 37 of file upssvc.h.

◆ UPSAPI

#define UPSAPI   DECLSPEC_IMPORT

Definition at line 33 of file upssvc.h.

Function Documentation

◆ UPSCancelWait()

UPSAPI VOID NTAPI UPSCancelWait ( VOID  )

◆ UPSGetState()

UPSAPI DWORD NTAPI UPSGetState ( VOID  )

◆ UPSInit()

UPSAPI DWORD NTAPI UPSInit ( VOID  )

◆ UPSStop()

UPSAPI VOID NTAPI UPSStop ( VOID  )

◆ UPSTurnOff()

UPSAPI VOID NTAPI UPSTurnOff ( IN DWORD  aTurnOffDelay)

◆ UPSWaitForStateChange()

UPSAPI VOID NTAPI UPSWaitForStateChange ( IN DWORD  aCurrentState,
IN DWORD  anInterval 
)