home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwplascr.zip / XWPL0208.ZIP / include / startshut / apm.h next >
Text File  |  2002-02-26  |  2KB  |  50 lines

  1.  
  2. /*
  3.  *@@sourcefile apm.h:
  4.  *      header file for apm.c.
  5.  *      apm.c contains the XWorkplace APM interface for
  6.  *      automatically turning the computer off after
  7.  *      shutdown has completed. This file declares
  8.  *      everything necessary for this.
  9.  *
  10.  *@@include #include <os2.h>
  11.  *@@include #include "helpers\apmh.h"
  12.  *@@include #include "startshut\apm.h"
  13.  */
  14.  
  15. /*
  16.  *      Massive thanks go out to ARAKAWA Atsushi (arakaw@ibm.net)
  17.  *      for filling this in, and to Roman Stangl (rstangl@vnet.ibm.com)
  18.  *      for finding out all the APM stuff.
  19.  *
  20.  *      This file Copyright (C) 1997-2002 Ulrich Möller, ARAKAWA Atsushi.
  21.  *      This program is free software; you can redistribute it and/or modify
  22.  *      it under the terms of the GNU General Public License as published by
  23.  *      the Free Software Foundation, in version 2 as it comes in the COPYING
  24.  *      file of the XWorkplace main distribution.
  25.  *      This program is distributed in the hope that it will be useful,
  26.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  27.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  28.  *      GNU General Public License for more details.
  29.  */
  30.  
  31. #ifndef APM_HEADER_INCLUDED
  32.     #define APM_HEADER_INCLUDED
  33.  
  34.     #define APM_UNKNOWN             0x00
  35.     #define APM_OK                  0x01
  36.     #define APM_IGNORE              0x02
  37.     #define APM_CANCEL              0x04
  38.     // #define APM_DOSSHUTDOWN_0       0x08 removed V0.9.2 (2000-02-29) [umoeller]
  39.     #define APM_DOSSHUTDOWN_1       0x10
  40.  
  41.     PSZ apmQueryVersion(VOID);
  42.  
  43.     BOOL apmPowerOffSupported(VOID);
  44.  
  45.     ULONG apmPreparePowerOff(PSZ pszError);
  46.  
  47.     VOID apmDoPowerOff(BOOL fDelay);
  48.  
  49. #endif
  50.