Source code of Windows XP (NT5)
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.

45 lines
2.1 KiB

  1. //
  2. // fileno.h - defines symbolic constants for server c code files.
  3. // File numbers are 16 bit values. The high byte is the directory number and
  4. // the low byte is the file number within the directory.
  5. //
  6. // Why not make the macro have just one arg, since line is always
  7. // __LINE__? Because if we did then __LINE__ would be evaluated here,
  8. // rather than at the invocation of the macro, and so would always
  9. // have the value 11.
  10. #define DSID(fileno,line) (((fileno) << 16) | (line))
  11. // define directory numbers
  12. #define DIRNO_ADMIN (0) // ntrepl\admin
  13. #define DIRNO_DBLAYER (1 << 8) // ntrepl\dblayer
  14. #define DIRNO_COMM (2 << 8) // ntrepl\comm
  15. #define DIRNO_INC (3 << 8) // ntrepl\inc
  16. #define DIRNO_JET (4 << 8) // ntrepl\jet
  17. #define DIRNO_REPL (5 << 8) // ntrepl\repl
  18. #define DIRNO_SETUP (6 << 8) // ntrepl\setup
  19. #define DIRNO_UTIL (7 << 8) // ntrepl\util
  20. // util directory
  21. #define FILENO_ALERT (DIRNO_UTIL + 0) // alert.c
  22. #define FILENO_DEBUG (DIRNO_UTIL + 0) // debug.c
  23. #define FILENO_CONFIG (DIRNO_UTIL + 1) // config.c
  24. #define FILENO_EVENT (DIRNO_UTIL + 2) // event.c
  25. #define FILENO_EXCEPT (DIRNO_UTIL + 3) // except.c
  26. // dblayer directory
  27. #define FILENO_DBEVAL (DIRNO_DBLAYER + 0) // dbeval.c
  28. #define FILENO_DBINDEX (DIRNO_DBLAYER + 1) // dbindex.c
  29. #define FILENO_DBINIT (DIRNO_DBLAYER + 2) // dbinit.c
  30. #define FILENO_DBISAM (DIRNO_DBLAYER + 3) // dbisam.c
  31. #define FILENO_DBJETEX (DIRNO_DBLAYER + 4) // dbjetex.c
  32. #define FILENO_DBOBJ (DIRNO_DBLAYER + 5) // dbobj.c
  33. #define FILENO_DBSUBJ (DIRNO_DBLAYER + 6) // dbsubj.c
  34. #define FILENO_DBSYNTAX (DIRNO_DBLAYER + 7) // dbsyntax.c
  35. #define FILENO_DBTOOLS (DIRNO_DBLAYER + 8) // dbtools.c
  36. #define FILENO_DBPROP (DIRNO_DBLAYER + 9) // dbprop.c