os2 1.8 KB

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