msvc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #------------------------------------------------------------------------------
  2. # $File: msvc,v 1.9 2017/08/02 08:15:20 christos Exp $
  3. # msvc: file(1) magic for msvc
  4. # "H. Nanosecond" <aldomel@ix.netcom.com>
  5. # Microsoft visual C
  6. #
  7. # I have version 1.0
  8. # .aps
  9. 0 string HWB\000\377\001\000\000\000 Microsoft Visual C .APS file
  10. # .ide
  11. #too long 0 string \102\157\162\154\141\156\144\040\103\053\053\040\120\162\157\152\145\143\164\040\106\151\154\145\012\000\032\000\002\000\262\000\272\276\372\316 MSVC .ide
  12. 0 string \102\157\162\154\141\156\144\040\103\053\053\040\120\162\157 MSVC .ide
  13. # .res
  14. 0 string \000\000\000\000\040\000\000\000\377 MSVC .res
  15. 0 string \377\003\000\377\001\000\020\020\350 MSVC .res
  16. 0 string \377\003\000\377\001\000\060\020\350 MSVC .res
  17. #.lib
  18. 0 string \360\015\000\000 Microsoft Visual C library
  19. 0 string \360\075\000\000 Microsoft Visual C library
  20. 0 string \360\175\000\000 Microsoft Visual C library
  21. #.pch
  22. 0 string DTJPCH0\000\022\103\006\200 Microsoft Visual C .pch
  23. # Summary: Symbol Table / Debug info used by Microsoft compilers
  24. # URL: https://en.wikipedia.org/wiki/Program_database
  25. # Reference: https://code.google.com/p/pdbparser/wiki/MSF_Format
  26. # Update: Joerg Jenderek
  27. # Note: test only for Windows XP+SP3 x86 , 8.1 x64 arm and 10.1 x86
  28. # info does only applies partly for older files like msvbvm50.pdb about year 2001
  29. 0 string Microsoft\ C/C++\040
  30. # "Microsoft Program DataBase" by TrID
  31. >24 search/14 \r\n\x1A MSVC program database
  32. !:mime application/x-ms-pdb
  33. !:ext pdb
  34. # "MSF 7.00" "program database 2.00" for msvbvm50.pdb
  35. >>16 regex \([0-9.]+\) ver %s
  36. #>>>0x38 search/128123456 /LinkInfo \b with linkinfo
  37. # "MSF 7.00" variant
  38. >>0x1e leshort 0
  39. # PageSize 400h 1000h
  40. >>>0x20 lelong x \b, %d
  41. # Page Count
  42. >>>0x28 lelong x \b*%d bytes
  43. # "program database 2.00" variant
  44. >>0x1e leshort !0
  45. # PageSize 400h
  46. >>>0x2c lelong x \b, %d
  47. # Page Count for msoo-dll.pdb 4379h
  48. >>>0x32 leshort x \b*%d bytes
  49. # Reference: https://github.com/Microsoft/vstest/pull/856/commits/fdc7a9f074ca5a8dfeec83b1be9162bf0cf4000d
  50. 0 string/c bsjb\001\000\001\000\000\000\000\000\f\000\000\000pdb\ v1.0 Microsoft Rosyln C# debugging symbols version 1.0
  51. #.sbr
  52. 0 string \000\002\000\007\000 MSVC .sbr
  53. >5 string >\0 %s
  54. #.bsc
  55. 0 string \002\000\002\001 MSVC .bsc
  56. #.wsp
  57. 0 string 1.00\ .0000.0000\000\003 MSVC .wsp version 1.0000.0000
  58. # these seem to start with the version and contain menus