os2 1.8 KB

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