Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB

  1. /*--------------------------------------------------------------
  2. *
  3. * FILE: SK_defs.h
  4. *
  5. * PURPOSE: Global Variables & Defines
  6. *
  7. * CREATION: June 1994
  8. *
  9. * COPYRIGHT: Black Diamond Software (C) 1994
  10. *
  11. * AUTHOR: Ronald Moak
  12. *
  13. * $Header: %Z% %F% %H% %T% %I%
  14. *
  15. *--- Defines ---------------------------------------------------------*/
  16. // Commands Process by the Service inside the MainService Routine
  17. #ifdef DEFDATA
  18. #define EXTERN
  19. #define PATHSZ MAX_PATH
  20. #else
  21. #define EXTERN extern
  22. #define PATHSZ
  23. #endif
  24. // Main Service Defines ---------------------------------------
  25. #define SC_CLEAR 0
  26. #define SC_LOG_OUT 1
  27. #define SC_LOG_IN 2
  28. #define SC_CHANGE_COMM 3
  29. #define SC_DISABLE_SKEY 4
  30. #define SC_ENABLE_SKEY 5
  31. // Variables ---------------------------------------------------
  32. // Structures ---------------------------------------------------
  33. EXTERN SERIALKEYS skNewKey, skCurKey;
  34. EXTERN LPSERIALKEYS lpskSKey;
  35. EXTERN TCHAR szNewActivePort[PATHSZ];
  36. EXTERN TCHAR szNewPort[PATHSZ];
  37. EXTERN TCHAR szCurActivePort[PATHSZ];
  38. EXTERN TCHAR szCurPort[PATHSZ];
  39. #define SERKF_ACTIVE 0x00000040
  40. #define REG_DEF 1
  41. #define REG_USER 2
  42. #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
  43. void DoServiceCommand(DWORD dwServiceCommand);