4 * UPS service interface
6 * This file is part of the w32api package.
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27 #pragma GCC system_header
37 #define UPSAPI DECLSPEC_EXPORT
39 #define UPSAPI DECLSPEC_IMPORT
44 #define UPS_ONBATTERY 2
45 #define UPS_LOWBATTERY 4
47 #define UPS_CRITICAL 16
59 #define UPS_INITUNKNOWNERROR 0
61 #define UPS_INITNOSUCHDRIVER 2
62 #define UPS_INITBADINTERFACE 3
63 #define UPS_INITREGISTRYERROR 4
64 #define UPS_INITCOMMOPENERROR 5
65 #define UPS_INITCOMMSETUPERROR 6
81 /*IN*/ DWORD aTurnOffDelay
);
86 UPSWaitForStateChange(
87 /*IN*/ DWORD aCurrentState
,
88 /*IN*/ DWORD anInterval
);
94 #endif /* __UPSSVC_H */