ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

upssvc.h
Go to the documentation of this file.
00001 /*
00002  * upssvc.h
00003  *
00004  * UPS service interface
00005  *
00006  * This file is part of the w32api package.
00007  *
00008  * Contributors:
00009  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
00010  *
00011  * THIS SOFTWARE IS NOT COPYRIGHTED
00012  *
00013  * This source code is offered for use in the public domain. You may
00014  * use, modify or distribute it freely.
00015  *
00016  * This code is distributed in the hope that it will be useful but
00017  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
00018  * DISCLAIMED. This includes but is not limited to warranties of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00020  *
00021  */
00022 
00023 #ifndef __UPSSVC_H
00024 #define __UPSSVC_H
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 #if defined(_APCUPS_)
00031 #define UPSAPI
00032 #else
00033 #define UPSAPI DECLSPEC_IMPORT
00034 #endif
00035 
00036 
00037 #define UPS_ONLINE                        1
00038 #define UPS_ONBATTERY                     2
00039 #define UPS_LOWBATTERY                    4
00040 #define UPS_NOCOMM                        8
00041 #define UPS_CRITICAL                      16
00042 
00043 UPSAPI
00044 VOID
00045 NTAPI
00046 UPSCancelWait(VOID);
00047 
00048 UPSAPI
00049 DWORD
00050 NTAPI
00051 UPSGetState(VOID);
00052 
00053 #define UPS_INITUNKNOWNERROR              0
00054 #define UPS_INITOK                        1
00055 #define UPS_INITNOSUCHDRIVER              2
00056 #define UPS_INITBADINTERFACE              3
00057 #define UPS_INITREGISTRYERROR             4
00058 #define UPS_INITCOMMOPENERROR             5
00059 #define UPS_INITCOMMSETUPERROR            6
00060 
00061 UPSAPI
00062 DWORD
00063 NTAPI
00064 UPSInit(VOID);
00065 
00066 UPSAPI
00067 VOID
00068 NTAPI
00069 UPSStop(VOID);
00070 
00071 UPSAPI
00072 VOID
00073 NTAPI
00074 UPSTurnOff(
00075   IN DWORD aTurnOffDelay);
00076 
00077 UPSAPI
00078 VOID
00079 NTAPI
00080 UPSWaitForStateChange(
00081   IN DWORD aCurrentState,
00082   IN DWORD anInterval);
00083 
00084 #ifdef __cplusplus
00085 }
00086 #endif
00087 
00088 #endif /* __UPSSVC_H */

Generated on Sat May 26 2012 04:28:58 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.