os2 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #------------------------------------------------------------------------------
  2. # os2: file(1) magic for OS/2 files
  3. #
  4. # Provided 1998/08/22 by
  5. # David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
  6. 1 string InternetShortcut MS Windows 95 Internet shortcut text
  7. >24 string >\ (URL=<%s>)
  8. # OS/2 URL objects
  9. # Provided 1998/08/22 by
  10. # David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
  11. 0 string http: OS/2 URL object text
  12. >5 string >\ (WWW) <http:%s>
  13. 0 string mailto: OS/2 URL object text
  14. >7 string >\ (email) <%s>
  15. 0 string news: OS/2 URL object text
  16. >5 string >\ (Usenet) <%s>
  17. 0 string ftp: OS/2 URL object text
  18. >4 string >\ (FTP) <ftp:%s>
  19. 0 string file: OS/2 URL object text
  20. >5 string >\ (Local file) <%s>
  21. # >>>>> OS/2 INF/HLP <<<<< (source: Daniel Dissett ddissett@netcom.com)
  22. # Carl Hauser (chauser.parc@xerox.com) and
  23. # Marcus Groeber (marcusg@ph-cip.uni-koeln.de)
  24. # list the following header format in inf02a.doc:
  25. #
  26. # int16 ID; // ID magic word (5348h = "HS")
  27. # int8 unknown1; // unknown purpose, could be third letter of ID
  28. # int8 flags; // probably a flag word...
  29. # // bit 0: set if INF style file
  30. # // bit 4: set if HLP style file
  31. # // patching this byte allows reading HLP files
  32. # // using the VIEW command, while help files
  33. # // seem to work with INF settings here as well.
  34. # int16 hdrsize; // total size of header
  35. # int16 unknown2; // unknown purpose
  36. #
  37. 0 string HSP\x01\x9b\x00 OS/2 INF
  38. >107 string >0 (%s)
  39. 0 string HSP\x10\x9b\x00 OS/2 HLP
  40. >107 string >0 (%s)
  41. # OS/2 INI (this is a guess)
  42. 0 string \xff\xff\xff\xff\x14\0\0\0 OS/2 INI