ea8dc7e0f2
*- file is now broken into a library containing and processing the magic and a consumer binary.
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
|
|
#------------------------------------------------------------------------------
|
|
# os2: file(1) magic for OS/2 files
|
|
#
|
|
|
|
# Provided 1998/08/22 by
|
|
# David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
|
|
1 string InternetShortcut MS Windows 95 Internet shortcut text
|
|
>24 string >\ (URL=<%s>)
|
|
|
|
# OS/2 URL objects
|
|
# Provided 1998/08/22 by
|
|
# David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
|
|
#0 string http: OS/2 URL object text
|
|
#>5 string >\ (WWW) <http:%s>
|
|
#0 string mailto: OS/2 URL object text
|
|
#>7 string >\ (email) <%s>
|
|
#0 string news: OS/2 URL object text
|
|
#>5 string >\ (Usenet) <%s>
|
|
#0 string ftp: OS/2 URL object text
|
|
#>4 string >\ (FTP) <ftp:%s>
|
|
#0 string file: OS/2 URL object text
|
|
#>5 string >\ (Local file) <%s>
|
|
|
|
# >>>>> OS/2 INF/HLP <<<<< (source: Daniel Dissett ddissett@netcom.com)
|
|
# Carl Hauser (chauser.parc@xerox.com) and
|
|
# Marcus Groeber (marcusg@ph-cip.uni-koeln.de)
|
|
# list the following header format in inf02a.doc:
|
|
#
|
|
# int16 ID; // ID magic word (5348h = "HS")
|
|
# int8 unknown1; // unknown purpose, could be third letter of ID
|
|
# int8 flags; // probably a flag word...
|
|
# // bit 0: set if INF style file
|
|
# // bit 4: set if HLP style file
|
|
# // patching this byte allows reading HLP files
|
|
# // using the VIEW command, while help files
|
|
# // seem to work with INF settings here as well.
|
|
# int16 hdrsize; // total size of header
|
|
# int16 unknown2; // unknown purpose
|
|
#
|
|
0 string HSP\x01\x9b\x00 OS/2 INF
|
|
>107 string >0 (%s)
|
|
0 string HSP\x10\x9b\x00 OS/2 HLP
|
|
>107 string >0 (%s)
|
|
|
|
# OS/2 INI (this is a guess)
|
|
0 string \xff\xff\xff\xff\x14\0\0\0 OS/2 INI
|