home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / os2upsd.zip / upsctrl.h < prev    next >
C/C++ Source or Header  |  1997-10-18  |  559b  |  29 lines

  1. #ifndef UPSCTRL_H
  2. #define UPSCTRL_H
  3.  
  4. #define INCL_PM
  5. #define INCL_DOSDEVICES
  6. #define INCL_DOSPROCESS
  7. #define INCL_WINMESSAGEMGR
  8. #define INCL_WINWINDOWMGR
  9. #define INLC_WINWORKPLACE
  10.  
  11. #include <os2.h>
  12. #include <pmwp.h>
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <bsedev.h>
  16. #include <io.h>
  17. #include <fcntl.h>
  18. #include <sys\stat.h>
  19. #include "upsd.h"
  20.  
  21. void UPSPowerOff(HFILE com);
  22. void SetBitRate(HFILE com, WORD rate);
  23. void RaiseDTR(HFILE com);
  24. void LowerDTR(HFILE com);
  25. int CheckDSR(HFILE com);
  26. int CheckState(HFILE com);
  27.  
  28. #endif
  29.