home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / KLOCK2.ZIP / KEYLOCKS.H < prev    next >
Text File  |  1992-07-13  |  2KB  |  54 lines

  1. /* ------------------------------------------------------------ */
  2. /*                                                              */
  3. /* Header file for KeyLocks II Server API.                      */
  4. /*                                                              */
  5. /* (c) Copyright 1992 Yankee Software, All rights reserved.     */
  6. /*                                                              */
  7. /* ------------------------------------------------------------ */
  8.  
  9. // This files assumes the following definitions are known
  10.  
  11. // #define EXTERNAL     extern
  12. // #define FUNCTION
  13. // #define USHORT       unsigned short int   /* 16 bits */
  14. // #define INT          short int            /* 16 bits */
  15. // #define VOID         void
  16.  
  17. // Functions in KEYLOCK.DLL for public clients
  18.  
  19. EXTERNAL FUNCTION USHORT pascal far KeyLockSet(INT numlock_state, INT capslock_state, 
  20.       INT scrolllock_state);
  21. EXTERNAL FUNCTION USHORT pascal far KeyLockQStable(VOID);
  22. EXTERNAL FUNCTION USHORT pascal far KeyLockTidyUp(VOID);
  23.  
  24. // Starting point for DLL's errors
  25.  
  26. #define     KL_ERROR_BASE              50000
  27.  
  28. // Errors that indicate the user's situation is not kosher
  29.  
  30. #define     KL_ERROR_ALREADY_INIT      KL_ERROR_BASE + 1
  31. #define     KL_ERROR_SESSION           KL_ERROR_BASE + 2
  32. #define     KL_ERROR_NO_INIT           KL_ERROR_BASE + 3
  33.  
  34. // Errors that indicates that DLL or OS/2 is messed up
  35.  
  36. #define     KL_ERROR_SYSTEM            KL_ERROR_BASE + 4
  37. #define     KL_ERROR_BROKEN            KL_ERROR_BASE + 5
  38.  
  39. // Errors that indicate a lack of resources
  40.  
  41. #define     KL_ERROR_SEM               KL_ERROR_BASE + 6
  42. #define     KL_ERROR_HANDLES           KL_ERROR_BASE + 7
  43. #define     KL_ERROR_TIMEOUT           KL_ERROR_BASE + 8
  44.  
  45. // Values returned by KeyLockQStable()
  46.  
  47. #define KL_STABLE       0
  48. #define KL_UNSTABLE     1
  49. #define KL_BROKEN       2
  50.  
  51.  
  52.  
  53.  
  54.