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.

36 lines
836 B

  1. #*****************************************************************#
  2. #** Microsoft LAN Manager **#
  3. #** Copyright(c) Microsoft Corp., 1990 **#
  4. #*****************************************************************#
  5. BEGIN {
  6. out_prefix = "NET"
  7. inp_prefix_len = 7;
  8. base_value = 2100;
  9. first_time = 1;
  10. }
  11. /^\(BASE=/ {
  12. base_value = substr($1,inp_prefix_len);
  13. base_value = substr(base_value, 1, length(base_value) - 1);
  14. }
  15. /^\(BASE\+/ {
  16. this_num = substr($1,inp_prefix_len);
  17. this_num = substr(this_num, 1, length(this_num) - 1);
  18. this_num = this_num + base_value;
  19. if (first_time) {
  20. first_time = 0;
  21. }
  22. else {
  23. printf(".\n");
  24. }
  25. printf("MessageId=%04d SymbolicName=%s%04d\nLanguage=English\n", \
  26. this_num, out_prefix, this_num);
  27. }
  28. ! /^\(BASE/
  29. END {
  30. printf(".\n");
  31. }