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.

83 lines
2.5 KiB

  1. //
  2. // Versioning information header
  3. // Copyright (c) Microsoft Corporation, 1997
  4. //
  5. //
  6. // header: version.hxx
  7. // author: silviuc
  8. // created: Thu Jun 05 16:49:47 1997
  9. //
  10. #ifndef _VERSION_HXX_INCLUDED_
  11. #define _VERSION_HXX_INCLUDED_
  12. //
  13. // This versioning header should be included in all modules from the project
  14. // in which versioning information is necessary.
  15. // The module that will contain definitions from `version.hxx'
  16. // should contain the following definition before the inclusion:
  17. //
  18. // #define VERSION_DEFINITION_MODULE
  19. //
  20. // It can be used to get version information in almost any conditions.
  21. //
  22. // (1) print version information from the program
  23. // (2) get version information while inside debugger (da version_version)
  24. // (3) get version information if we have the exe file (hex dump and search)
  25. //
  26. //
  27. // Version information
  28. //
  29. #define VERSION_INFORMATION_PROGRAM "Systrack"
  30. #define VERSION_INFORMATION_VERSION "0.0.5"
  31. #define VERSION_INFORMATION_AUTHOR "SilviuC"
  32. #define VERSION_INFORMATION_OWNER "SilviuC"
  33. #define VERSION_INFORMATION_CREATED "Nov 09, 1998"
  34. #define VERSION_INFORMATION_UPDATED "Nov 21, 1998"
  35. #ifdef VERSION_DEFINITION_MODULE
  36. char * version_program = "$program: "VERSION_INFORMATION_PROGRAM;
  37. char * version_version = "$version: "VERSION_INFORMATION_VERSION;
  38. char * version_author = "$author: "VERSION_INFORMATION_AUTHOR;
  39. char * version_owner = "$owner: "VERSION_INFORMATION_OWNER;
  40. char * version_created = "$created: "VERSION_INFORMATION_CREATED;
  41. char * version_updated = "$updated: "VERSION_INFORMATION_UPDATED;
  42. #else
  43. extern char * version_program;
  44. extern char * version_version;
  45. extern char * version_author;
  46. extern char * version_owner;
  47. extern char * version_created;
  48. extern char * version_updated;
  49. #endif // #if VERSION_DEFINITION_MODULE
  50. //
  51. // Version dump function
  52. //
  53. #ifdef VERSION_DEFINITION_MODULE
  54. void dump_version_information ()
  55. {
  56. printf (" program: %s\n", VERSION_INFORMATION_PROGRAM);
  57. printf (" version: %s\n", VERSION_INFORMATION_VERSION);
  58. printf (" author: %s\n", VERSION_INFORMATION_AUTHOR);
  59. printf (" owner: %s\n", VERSION_INFORMATION_OWNER);
  60. printf (" created: %s\n", VERSION_INFORMATION_CREATED);
  61. printf (" updated: %s\n", VERSION_INFORMATION_UPDATED);
  62. exit (1);
  63. }
  64. #else
  65. void dump_version_information ();
  66. #endif // #if VERSION_DEFINITION_MODULE
  67. // ...
  68. #endif // #ifndef _VERSION_HXX_INCLUDED_
  69. //
  70. // end of header: version.hxx
  71. //