windows revision 1.1.1.14 1
2 #------------------------------------------------------------------------------
3 # $File: windows,v 1.47 2022/09/23 13:23:04 christos Exp $
4 # windows: file(1) magic for Microsoft Windows
5 #
6 # This file is mainly reserved for files where programs
7 # using them are run almost always on MS Windows 3.x or
8 # above, or files only used exclusively in Windows OS,
9 # where there is no better category to allocate for.
10 # For example, even though WinZIP almost run on Windows
11 # only, it is better to treat them as "archive" instead.
12 # For format usable in DOS, such as generic executable
13 # format, please specify under "msdos" file.
14 #
15
16
17 # Summary: Outlook Express DBX file
18 # Created by: Christophe Monniez
19 # Update: Joerg Jenderek
20 # URL: http://fileformats.archiveteam.org/wiki/Outlook_Express_Database
21 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/d/dbx.trid.xml
22 # https://sourceforge.net/projects/ol2mbox/files/LibDBX/
23 # v1.0.4/libdbx_1.0.4.tar.gz/FILE-FORMAT
24 # Note: called "Outlook Express Database" by TrID and DROID via PUID fmt/838 fmt/839
25 # and partly verified by `undbx --verbosity 4 Posteingang.dbx`
26 0 string \xCF\xAD\x12\xFE
27 # skip DROID fmt-838-signature-id-1193.dbx fmt-839-signature-id-1194.dbx by check for valid file size
28 >0x7C ulelong >0 MS Outlook Express DBX file
29 #!:mime application/octet-stream
30 #!:mime application/vnd.ms-outlook
31 !:mime application/x-ms-dbx
32 !:ext dbx
33 >>4 byte =0xC5 \b, message database
34 >>4 byte =0xC6 \b, folder database
35 >>4 byte =0xC7 \b, account information
36 >>4 byte =0x30 \b, offline database
37 # version like: 5.2 5.5 (typical)
38 >>20 ulequad !0x0000000500000005 \b, version
39 # major version
40 >>>24 ulelong x %u
41 # minor version
42 >>>20 ulelong x \b.%u
43 # CLSID: 6F74FDC5-E366-11d1-9A4E-00C04FA309D4~Message 6F74FDC6-E366-11D1-9A4E-00C04FA309D4~Folder
44 # 26FE9D30-1A8F-11D2-AABF-006097D474C4~offline
45 #>>4 guid x \b, CLSID %s
46 # file size; total size of file; sometimes real size a little bit higher
47 >>0x7C ulelong x \b, ~ %u bytes
48 # highest Email ID; the next email will have a number one higher than this
49 >>0x5c ulelong x \b, highest ID %#x
50 # item count; number of items stored in this DBX file
51 >>0xC4 ulelong x \b, %u item
52 # plural s
53 >>0xC4 ulelong !1 \bs
54 # index pointer; file offset pointing to a page of Data Indexes
55 >>0xE4 ulelong >0 \b, index pointer %#x
56
57 # From: Joerg Jenderek
58 # URL: http://fileformats.archiveteam.org/wiki/Nickfile
59 # https://www.nirsoft.net/utils/outlook_nk2_edit.html
60 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/n/nk2.trid.xml
61 # https://github.com/libyal/libnk2/blob/main/documentation
62 # Nickfile%20(NK2)%20format.asciidoc
63 # Note: called "Outlook Nickfile" by TrID & TestDisk and
64 # "Outlook Nickname File" by Microsoft Outlook and
65 # "Outlook AutoComplete File" by Nirsoft NK2Edit
66 # partly verfied by NK2Edit Raw Text Edit Mode
67 0 ubelong 0x0DF0ADBA MS Outlook Nickfile
68 #!:mime application/octet-stream
69 #!:mime application/vnd.ms-outlook
70 !:mime application/x-ms-nickfile
71 !:ext nk2/dat/bak
72 # nick is used by "older" Outlook; dat is used by "newer" Outlook (probably 2010 - 2016); bak is used for backup
73 #!:ext nick/nk2/dat/bak
74 # Unknown; probably a version indicator like: 0000000Ah 0000000Ch
75 >4 ulelong x \b, probably version %u
76 # Unknown2; probably a version indicator like: 1 0
77 >8 ulelong x \b.%u
78 # number of rows (nickname or alias items) in file
79 >12 ulelong x \b, %u items
80 # number of item entries/columns/properties value like: 17h
81 >16 ulelong x \b, %u entries
82 # value type/property tag: 001Fh~4 bytes for data size of UTF-16 LE string
83 >20 uleshort x \b, value type %#4.4x
84 # entry type/property identifier: 6001h~PR_DOTSTUFF_STATE/PR_NICK_NAME_W
85 >22 uleshort x \b, entry type %#4.4x
86 # Reserved like: 0013FD90h
87 #>24 ulelong x \b, reserved %#8.8x
88 # value data array/Irrelevant Union like: 0000000004E31A80h
89 #>28 ulequad x \b, data %#16.16llx
90 # UTF-16
91 >20 uleshort =0x001F
92 # unicode string bytes like: 2Ch
93 >>36 ulelong x \b, %u bytes
94 # unicode string value PT_UNICODE like: janesmith (a] contoso.org
95 >>40 lestring16 x "%s"
96
97 # Summary: Windows crash dump
98 # Extension: .dmp
99 # Created by: Andreas Schuster (https://computer.forensikblog.de/)
100 # Reference (1): https://computer.forensikblog.de/en/2008/02/64bit_magic.html
101 # Modified by (1): Abel Cheung (Avoid match with first 4 bytes only)
102 0 string PAGE
103 >4 string DUMP MS Windows 32bit crash dump
104 >>0x05c byte 0 \b, no PAE
105 >>0x05c byte 1 \b, PAE
106 >>0xf88 lelong 1 \b, full dump
107 >>0xf88 lelong 2 \b, kernel dump
108 >>0xf88 lelong 3 \b, small dump
109 >>0x068 lelong x \b, %d pages
110 >4 string DU64 MS Windows 64bit crash dump
111 >>0xf98 lelong 1 \b, full dump
112 >>0xf98 lelong 2 \b, kernel dump
113 >>0xf98 lelong 3 \b, small dump
114 >>0x090 lequad x \b, %lld pages
115
116
117 # Summary: Vista Event Log
118 # Extension: .evtx
119 # Created by: Andreas Schuster (https://computer.forensikblog.de/)
120 # Reference (1): https://computer.forensikblog.de/en/2007/05/some_magic.html
121 0 string ElfFile\0 MS Windows Vista Event Log
122 >0x2a leshort x \b, %d chunks
123 >>0x10 lelong x \b (no. %d in use)
124 >0x18 lelong >1 \b, next record no. %d
125 >0x18 lelong =1 \b, empty
126 >0x78 lelong &1 \b, DIRTY
127 >0x78 lelong &2 \b, FULL
128
129 # Summary: Windows System Deployment Image
130 # Created by: Joerg Jenderek
131 # URL: http://en.wikipedia.org/wiki/System_Deployment_Image
132 # Reference: http://skolk.livejournal.com/1320.html
133 0 string $SDI
134 >4 string 0001 System Deployment Image
135 !:mime application/x-ms-sdi
136 #!:mime application/octet-stream
137 # \Boot\boot.sdi
138 !:ext sdi
139 # MDBtype: 0~Unspecified 1~RAM 2~ROM
140 >>8 ulequad !0 \b, MDBtype %#llx
141 # BootCodeOffset
142 >>16 ulequad !0 \b, BootCodeOffset %#llx
143 # BootCodeSize
144 >>24 ulequad !0 \b, BootCodeSize %#llx
145 # VendorID
146 >>32 ulequad !0 \b, VendorID %#llx
147 # DeviceID
148 >>40 ulequad !0 \b, DeviceID %#llx
149 # DeviceModel
150 >>48 ulequad !0 \b, DeviceModel %#llx
151 >>>56 ulequad !0 \b%llx
152 # DeviceRole
153 >>64 ulequad !0 \b, DeviceRole %#llx
154 # Reserved1; reserved fields and gaps between BLOBs are padded with \0
155 #>>72 ulequad !0 \b, Reserved1 %#llx
156 # RuntimeGUID
157 >>80 ulequad !0 \b, RuntimeGUID %#llx
158 >>>88 ulequad !0 \b%llx
159 # RuntimeOEMrev
160 >>96 ulequad !0 \b, RuntimeOEMrev %#llx
161 # Reserved2
162 #>>104 ulequad !0 \b, Reserved2 %#llx
163 # BLOB alignment value in pages, as specified in sdimgr /pack: 1~4K 2~8k
164 >>112 ulequad !0 \b, PageAlignment %llu
165 # Reserved3[48]
166 #>>120 ulequad !0 \b, Reserved3 %#llx
167 # SDI checksum 39h
168 >>0x1f8 ulequad x \b, checksum %#llx
169 # BLOBtype[8] \0-padded: PART, WIM , BOOT, LOAD, DISK
170 >>0x400 string >\0 \b, type %-3.8s
171 # 0~non-filesystem 7~NTFS 6~BIGFAT
172 >>>0x420 ulequad !0 (%#llx)
173 # ATTRibutes
174 >>>0x408 ulequad !0 %#llx attributes
175 # Offset
176 >>>0x410 ulequad x at %#llx
177 # print 1 space after size and then handles NTFS boot sector by ./filesystems
178 >>>0x418 ulequad >0 %llu bytes
179 >>>>(0x410.l) indirect x
180 # 2nd BLOB: WIM
181 >>0x440 string >\0 \b, type %-3.8s
182 >>>0x428 ulequad !0 (%#llx)
183 # ATTRibutes
184 >>>0x448 ulequad !0 %#llx attributes
185 # Offset
186 >>>0x450 ulequad x at %#llx
187 >>>0x458 ulequad >0 %llu bytes
188 >>>>(0x450.l) indirect x
189 # 3rd BLOB
190 >>0x480 string >\0 \b, type %-3.8s
191
192 # Summary: Windows boot status log BOOTSTAT.DAT
193 # From: Joerg Jenderek
194 # Reference: https://www.geoffchappell.com/notes/windows/boot/bsd.htm
195 # Note: mainly refers to older Windows Vista, sometimes
196 # BOOTSTAT.DAT only contains nulls or invalid data
197 # checking for valid version below 5
198 0 ulelong <5
199 # skip many ISO images by checking for valid 64 KiB file size
200 >8 ulelong =0x00010000
201 >>0 use bootstat-dat
202 # display information of BOOTSTAT.DAT
203 0 name bootstat-dat
204 >0 ulelong x Windows boot log
205 #!:mime application/octet-stream
206 !:mime application/x-ms-dat
207 # BOOTSTAT.DAT in BOOT subdirectory
208 !:ext dat
209 # apparently a version number: 2 for older like Vista, 3, 4 Windows 10
210 >0 ulelong >2 \b, version %u
211 # apparently the size of the header: often 10h in older Windows, 14h, 18h
212 >4 ulelong !0x10 \b, header size %#x
213 #>4 ulelong !0x10 \b, header size %u
214 # apparently the size of the file: always 0x00010000~64KiB
215 # the file is acceptable to BOOTMGR only if it is exactly 64 KiB
216 >8 ulelong !0x00010000 \b, file size %#x
217 # size of valid data, in bytes: C8h 50h 172h 5D5Ch
218 >0xc ulelong x \b, %#x valid bytes
219 # skip header and jump to first bootstat entry and display information
220 >(0x4.l-1) ubyte x
221 >>&0 use bootstat-entry
222 # jump to first entry again because pointer are bad after "use"
223 >(0x4.l-1) ubyte x
224 # by 1st entry size jump to 2nd entry and display information
225 >>&(&0x18.l-1) ubyte x
226 >>>&0 use bootstat-entry
227 # jump to possible 3rd boot entry and display information
228 # >(0x4.l-1) ubyte x
229 # >>&(&0x18.l-1) ubyte x
230 # >>>&(&0x18.l-1) ubyte x
231 # >>>>&0 use bootstat-entry
232 # display BOOTSTAT.DAT entry
233 0 name bootstat-entry
234 #>0x00 ubequad x \b, ENTRY %16.16llx
235 # size of entry, in bytes: 40h(init) 78h(launced) 9Ch
236 #>0x18 ulelong x \b; entry size %u
237 >0x18 ulelong x \b; entry size %#x
238 # time stamp, in seconds
239 >0x00 ulelong x \b, %#x seconds
240 # always zero, significance unknown
241 >0x04 ulelong !0 \b, not null %u
242 # GUID of event source; but empty if event source is BOOTMGR
243 >0x08 ubequad !0 \b, GUID %#16.16llx
244 >>0x10 ubequad x \b%16.16llx
245 # severity code: 1~informational 3~errors
246 >0x1C ulelong !1 \b, severity %#x
247 # apparently a version number: 2
248 >0x20 ulelong !2 \b, version %u
249 # event identifier 1~log file initialised 11h~boot application launched
250 #>0x24 ulelong x \b, event %#x
251 >0x24 ulelong !1
252 >>0x24 ulelong !0x11 \b, event %#x
253 # entry data; size depends on event identifier
254 #>0x28 ubequad x \b, data %#16.16llx
255 >0x24 ulelong =0x1 \b, Init
256 # always 0, significance unknown
257 >>0x34 uleshort !0 \b, not null %u
258 # always 7, significance unknown
259 >>0x36 uleshort !7 \b, not seven %u
260 # year
261 >>0x28 uleshort x %u
262 # month
263 >>0x2A uleshort x \b-%u
264 # day
265 >>0x2C uleshort x \b-%u
266 # hour
267 >>0x2E uleshort x %u
268 # minute
269 >>0x30 uleshort x \b:%u
270 # second
271 >>0x32 uleshort x \b:%u
272 # boot application launched
273 >0x24 ulelong =0x11 \b, launched
274 # type of start: 0 normally, 1 or 2 maybe in a recovery sequence
275 >>0x38 uleshort !0 \b, type %u
276 # pathname of boot application, as null-terminated Unicode string; typically
277 # \Windows\system32\winload.exe \Windows\system32\winload.efi
278 >>0x3C lestring16 x %s
279
280 # Summary: Windows Error Report text files
281 # URL: https://en.wikipedia.org/wiki/Windows_Error_Reporting
282 # Reference: https://www.nirsoft.net/utils/app_crash_view.html
283 # Created by: Joerg Jenderek
284 # Note: in directories %ProgramData%\Microsoft\Windows\WER\{ReportArchive,ReportQueue}
285 # %LOCALAPPDATA%\Microsoft\Windows\WER\{ReportArchive,ReportQueue}
286 0 lestring16 Version=
287 >22 lestring16 EventType Windows Error Report
288 !:mime text/plain
289 # Report.wer
290 !:ext wer
291
292 # Summary: Windows 3.1 group files
293 # Extension: .grp
294 # Created by: unknown
295 0 string \120\115\103\103 MS Windows 3.1 group files
296
297
298 # Summary: Old format help files
299 # URL: https://en.wikipedia.org/wiki/WinHelp
300 # Reference: https://www.oocities.org/mwinterhoff/helpfile.htm
301 # Update: Joerg Jenderek
302 # Created by: Dirk Jagdmann <doj (a] cubic.org>
303 #
304 # check and then display version and date inside MS Windows HeLP file fragment
305 0 name help-ver-date
306 # look for Magic of SYSTEMHEADER
307 >0 leshort 0x036C
308 # version Major 1 for right file fragment
309 >>4 leshort 1 Windows
310 # print non empty string above to avoid error message
311 # Warning: Current entry does not yet have a description for adding a MIME type
312 !:mime application/winhelp
313 !:ext hlp
314 # version Minor of help file format is hint for windows version
315 >>>2 leshort 0x0F 3.x
316 >>>2 leshort 0x15 3.0
317 >>>2 leshort 0x21 3.1
318 >>>2 leshort 0x27 x.y
319 >>>2 leshort 0x33 95
320 >>>2 default x y.z
321 >>>>2 leshort x %#x
322 # to complete message string like "MS Windows 3.x help file"
323 >>>2 leshort x help
324 # GenDate often older than file creation date
325 >>>6 ldate x \b, %s
326 #
327 # Magic for HeLP files
328 0 lelong 0x00035f3f
329 # ./windows (version 5.25) labeled the entry as "MS Windows 3.x help file"
330 # file header magic 0x293B at DirectoryStart+9
331 >(4.l+9) uleshort 0x293B MS
332 # look for @VERSION bmf.. like IBMAVW.ANN
333 >>0xD4 string =\x62\x6D\x66\x01\x00 Windows help annotation
334 !:mime application/x-winhelp
335 !:ext ann
336 >>0xD4 string !\x62\x6D\x66\x01\x00
337 # "GID Help index" by TrID
338 >>>(4.l+0x65) string =|Pete Windows help Global Index
339 !:mime application/x-winhelp
340 !:ext gid
341 # HeLP Bookmark or
342 # "Windows HELP File" by TrID
343 >>>(4.l+0x65) string !|Pete
344 # maybe there exist a cleaner way to detect HeLP fragments
345 # brute search for Magic 0x036C with matching Major maximal 7 iterations
346 # discapp.hlp
347 >>>>16 search/0x49AF/s \x6c\x03
348 >>>>>&0 use help-ver-date
349 >>>>>&4 leshort !1
350 # putty.hlp
351 >>>>>>&0 search/0x69AF/s \x6c\x03
352 >>>>>>>&0 use help-ver-date
353 >>>>>>>&4 leshort !1
354 >>>>>>>>&0 search/0x49AF/s \x6c\x03
355 >>>>>>>>>&0 use help-ver-date
356 >>>>>>>>>&4 leshort !1
357 >>>>>>>>>>&0 search/0x49AF/s \x6c\x03
358 >>>>>>>>>>>&0 use help-ver-date
359 >>>>>>>>>>>&4 leshort !1
360 >>>>>>>>>>>>&0 search/0x49AF/s \x6c\x03
361 >>>>>>>>>>>>>&0 use help-ver-date
362 >>>>>>>>>>>>>&4 leshort !1
363 >>>>>>>>>>>>>>&0 search/0x49AF/s \x6c\x03
364 >>>>>>>>>>>>>>>&0 use help-ver-date
365 >>>>>>>>>>>>>>>&4 leshort !1
366 >>>>>>>>>>>>>>>>&0 search/0x49AF/s \x6c\x03
367 # GCC.HLP is detected after 7 iterations
368 >>>>>>>>>>>>>>>>>&0 use help-ver-date
369 # this only happens if bigger hlp file is detected after used search iterations
370 >>>>>>>>>>>>>>>>>&4 leshort !1 Windows y.z help
371 !:mime application/winhelp
372 !:ext hlp
373 # repeat search again or following default line does not work
374 >>>>16 search/0x49AF/s \x6c\x03
375 # remaining files should be HeLP Bookmark WinHlp32.BMK (XP 32-bit) or WinHlp32 (Windows 8.1 64-bit)
376 >>>>16 default x Windows help Bookmark
377 !:mime application/x-winhelp
378 !:ext bmk
379 ## FirstFreeBlock normally FFFFFFFFh 10h for *ANN
380 ##>>8 lelong x \b, FirstFreeBlock %#8.8x
381 # EntireFileSize
382 >>12 lelong x \b, %d bytes
383 ## ReservedSpace normally 042Fh AFh for *.ANN
384 #>>(4.l) lelong x \b, ReservedSpace %#8.8x
385 ## UsedSpace normally 0426h A6h for *.ANN
386 #>>(4.l+4) lelong x \b, UsedSpace %#8.8x
387 ## FileFlags normally 04...
388 #>>(4.l+5) lelong x \b, FileFlags %#8.8x
389 ## file header magic 0x293B
390 #>>(4.l+9) uleshort x \b, file header magic %#4.4x
391 ## file header Flags 0x0402
392 #>>(4.l+11) uleshort x \b, file header Flags %#4.4x
393 ## file header PageSize 0400h 80h for *.ANN
394 #>>(4.l+13) uleshort x \b, PageSize %#4.4x
395 ## Structure[16] z4
396 #>>(4.l+15) string >\0 \b, Structure_"%-.16s"
397 ## MustBeZero 0
398 #>>(4.l+31) uleshort x \b, MustBeZero %#4.4x
399 ## PageSplits
400 #>>(4.l+33) uleshort x \b, PageSplits %#4.4x
401 ## RootPage
402 #>>(4.l+35) uleshort x \b, RootPage %#4.4x
403 ## MustBeNegOne 0xffff
404 #>>(4.l+37) uleshort x \b, MustBeNegOne %#4.4x
405 ## TotalPages 1
406 #>>(4.l+39) uleshort x \b, TotalPages %#4.4x
407 ## NLevels 0x0001
408 #>>(4.l+41) uleshort x \b, NLevels %#4.4x
409 ## TotalBtreeEntries
410 #>>(4.l+43) ulelong x \b, TotalBtreeEntries %#8.8x
411 ## pages of the B+ tree
412 #>>(4.l+47) ubequad x \b, PageStart %#16.16llx
413
414 # start with colon or semicolon for comment line like Back2Life.cnt
415 0 regex \^(:|;)
416 # look for first keyword Base
417 >0 search/45 :Base
418 >>&0 use cnt-name
419 # only solution to search again from beginning , because relative offsets changes when use is called
420 >0 search/45 :Base
421 >0 default x
422 # look for other keyword Title like in putty.cnt
423 >>0 search/45 :Title
424 >>>&0 use cnt-name
425 #
426 # display mime type and name of Windows help Content source
427 0 name cnt-name
428 # skip space at beginning
429 >0 string \040
430 # name without extension and greater character or name with hlp extension
431 >>1 regex/c \^([^\xd>]*|.*\\.hlp) MS Windows help file Content, based "%s"
432 !:mime text/plain
433 !:apple ????TEXT
434 !:ext cnt
435 #
436 # Windows creates a full text search from hlp file, if the user clicks the "Find" tab and enables keyword indexing
437 0 string tfMR MS Windows help Full Text Search index
438 !:mime application/x-winhelp-fts
439 !:ext fts
440 >16 string >\0 for "%s"
441
442 # Summary: Hyper terminal
443 # Extension: .ht
444 # Created by: unknown
445 0 string HyperTerminal\040
446 >15 string 1.0\ --\ HyperTerminal\ data\ file MS Windows HyperTerminal profile
447
448 # https://ithreats.files.wordpress.com/2009/05/\040
449 # lnk_the_windows_shortcut_file_format.pdf
450 # Summary: Windows shortcut
451 # Extension: .lnk
452 # Created by: unknown
453 # 'L' + GUUID
454 0 string \114\0\0\0\001\024\002\0\0\0\0\0\300\0\0\0\0\0\0\106 MS Windows shortcut
455 !:mime application/x-ms-shortcut
456 !:ext lnk
457 >20 lelong&1 1 \b, Item id list present
458 >20 lelong&2 2 \b, Points to a file or directory
459 >20 lelong&4 4 \b, Has Description string
460 >20 lelong&8 8 \b, Has Relative path
461 >20 lelong&16 16 \b, Has Working directory
462 >20 lelong&32 32 \b, Has command line arguments
463 >20 lelong&64 64 \b, Icon
464 >>56 lelong x \b number=%d
465 >24 lelong&1 1 \b, Read-Only
466 >24 lelong&2 2 \b, Hidden
467 >24 lelong&4 4 \b, System
468 >24 lelong&8 8 \b, Volume Label
469 >24 lelong&16 16 \b, Directory
470 >24 lelong&32 32 \b, Archive
471 >24 lelong&64 64 \b, Encrypted
472 >24 lelong&128 128 \b, Normal
473 >24 lelong&256 256 \b, Temporary
474 >24 lelong&512 512 \b, Sparse
475 >24 lelong&1024 1024 \b, Reparse point
476 >24 lelong&2048 2048 \b, Compressed
477 >24 lelong&4096 4096 \b, Offline
478 >28 leqwdate x \b, ctime=%s
479 >36 leqwdate x \b, mtime=%s
480 >44 leqwdate x \b, atime=%s
481 >52 lelong x \b, length=%u, window=
482 >60 lelong&1 1 \bhide
483 >60 lelong&2 2 \bnormal
484 >60 lelong&4 4 \bshowminimized
485 >60 lelong&8 8 \bshowmaximized
486 >60 lelong&16 16 \bshownoactivate
487 >60 lelong&32 32 \bminimize
488 >60 lelong&64 64 \bshowminnoactive
489 >60 lelong&128 128 \bshowna
490 >60 lelong&256 256 \brestore
491 >60 lelong&512 512 \bshowdefault
492 #>20 lelong&1 0
493 #>>20 lelong&2 2
494 #>>>(72.l-64) pstring/h x \b [%s]
495 #>20 lelong&1 1
496 #>>20 lelong&2 2
497 #>>>(72.s) leshort x
498 #>>>&75 pstring/h x \b [%s]
499
500 # Summary: Outlook Personal Folders
501 # Created by: unknown
502 # Update: Joerg Jenderek
503 # URL: http://fileformats.archiveteam.org/wiki/Personal_Folder_File
504 # https://en.wikipedia.org/wiki/Personal_Storage_Table
505 # Reference: https://interoperability.blob.core.windows.net/files/MS-PST/%5bMS-PST%5d.pdf
506 # http://mark0.net/download/triddefs_xml.7z/defs/p/pab.trid.xml
507 # dwMagic !BDN
508 0 lelong 0x4E444221
509 # skip DROID x-fmt-75-signature-id-472.pab x-fmt-248-signature-id-260.pst x-fmt-249-signature-id-261.pst
510 # by check for existance of bPlatformCreate value
511 >14 ubyte x Microsoft Outlook
512 #!:mime application/octet-stream
513 # NOT official registered !
514 !:mime application/vnd.ms-outlook
515 # dwCRCPartial; 32-bit cyclic redundancy check (CRC) value of followin 471 bytes; zero for 64-bit
516 #>>4 ulelong !0 \b, CRC %#x
517 # wMagicClient; AB (4142h) is used for PAB files; SM (534Dh) is used for PST files; SO (534Fh) is used for OST files
518 #>>8 leshort x \b, wMagicClient=%#x
519 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/p/pab.trid.xml
520 # Note: called "Microsoft Personal Address Book" by TrID and
521 # "Microsoft Outlook Personal Address Book" by DROID via x-fmt/75
522 >>8 leshort 0x4142 Personal Address Book
523 #!:mime application/x-ms-pab
524 !:ext pab
525 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/p/pst.trid.xml
526 # http://mark0.net/download/triddefs_xml.7z/defs/p/pst-unicode.trid.xml
527 # Note: called "Microsoft OutLook Personal Folder" by TrID and
528 # by DROID via x-fmt/248 for ANSI and via x-fmt/249 for Unicode
529 #>>8 leshort 0x4D53 \b, PST~
530 # called "Microsoft Outlook email folder" in ./windows version 1.37 and older
531 >>8 leshort 0x4D53 Personal Storage
532 #!:mime application/x-ms-pst
533 !:ext pst
534 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/o/ost.trid.xml
535 # Note: called "Outlook Exchange Offline Storage" by TrID
536 >>8 leshort 0x4F53 Offline Storage
537 #!:mime application/x-ms-ost
538 !:ext ost
539 # wVer; file format version. 14 or 15 if the file is ANSI; > 21 or 23(=17h) if Unicode; 37 for written by Outlook with WIP
540 >>10 uleshort x (
541 # probably NO intermediate versions exist
542 >>10 leshort <0x10 \b<=2002, ANSI,
543 >>10 leshort >0x14 \b>=2003, Unicode,
544 >>10 uleshort x version %u)
545 # wVerClient; client file format version like: 19 22
546 #>>12 uleshort x \b, wVerClient=%u
547 # bPlatformCreate; This value MUST be set to 1 but also found 2
548 >>14 ubyte >1 \b, bPlatformCreate=%u
549 # bPlatformAccess; This value MUST be set to 1 but also found 2
550 >>15 ubyte >1 \b, bPlatformAccess=%u
551 # dwReserved1; SHOULD ignore and NOT modify this value; SHOULD initialize to zero
552 >>16 ulelong !0 \b, dwReserved1=%#x
553 # dwReserved2; SHOULD ignore and NOT modify this value; SHOULD initialize to zero
554 >>20 ulelong !0 \b, dwReserved2=%#x
555 # ANSI 32-bit variant Outlook 1997-2002
556 >>10 uleshort <16
557 # bidNextB; next BlockID (ANSI 4 bytes)
558 #>>>24 ulelong !0 \b, bidNextB=%#x
559 # bidNextP; Next available back BlockID pointer
560 #>>>28 ulelong !0 \b, bidNextP=%#x
561 # dwUnique; value monotonically increased when modifying PST; so CRC is changing
562 >>>32 ulelong !0 \b, dwUnique=%#x
563 # rgnid[128]; A fixed array of 32 NodeIDs, each corresponding to one of the 32 possible NID_TYPEs
564 #>>>36 ubequad x \b, rgnid=%#llx...
565 # dwReserved; Implementations SHOULD ignore this value and SHOULD NOT modify it; Initialized zero
566 >>>164 ulelong !0 \b, dwReserved=%#x
567 # ibFileEof; the size of the PST file, in bytes (ANSI 4 bytes)
568 >>>168 ulelong x \b, %u bytes
569 # ibAMapLast; offset to the last AMap page
570 #>>>172 ulelong x \b, ibAMapLast=%#x
571 # bSentinel; MUST be set to 0x80
572 >>>460 ubyte !0x80 \b, bSentinel=%#x
573 # bCryptMethod: 0~No encryption 1~encryption with permutation 2~encryption with cyclic 16~encryption with Windows Information Protection (WIP)
574 >>>461 ubyte >0 \b, bCryptMethod=%u
575 # UNICODE 64-bit variant Outlook 2003-2007
576 >>10 uleshort >20
577 # bidUnused; Unused 8 bytes padding (Unicode only); sometimes like: 0x0000000100000004
578 >>>24 ulequad !0x0000000100000004 \b, bidUnused=%#16.16llx
579 # dwUnique; value monotonically increased when modifying PST; so CRC is changing
580 >>>40 ulelong !0 \b, dwUnique=%#x
581 # rgnid[] (128 bytes): A fixed array of 32 NIDs, each corresponding to one of the 32 possible
582 #>>>44 ubequad x \b, rgnid=%#llx...
583 # ibFileEof; the size of the PST file, in bytes (Unicode 8 bytes)
584 >>>184 ulequad x \b, %llu bytes
585 # bSentinel; MUST be set to 0x80
586 >>>512 ubyte !0x80 \b, bSentinel=%#x
587 # bCryptMethod; Encryption type like: 0 1 2 16
588 >>>513 ubyte >0 \b, bCryptMethod=%u
589 # dwCRC; 32-bit CRC of the of the previous 516 bytes
590 >>>524 ulelong x \b, CRC32 %#x
591
592
593 # Summary: Windows help cache
594 # Created by: unknown
595 0 string \164\146\115\122\012\000\000\000\001\000\000\000 MS Windows help cache
596
597
598 # Summary: IE cache file
599 # Created by: Christophe Monniez
600 0 string Client\ UrlCache\ MMF Internet Explorer cache file
601 >20 string >\0 version %s
602
603
604 # Summary: Registry files
605 # Created by: unknown
606 # Modified by (1): Joerg Jenderek
607 0 string regf MS Windows registry file, NT/2000 or above
608 0 string CREG MS Windows 95/98/ME registry file
609 0 string SHCC3 MS Windows 3.1 registry file
610
611
612 # Summary: Windows Registry text
613 # URL: https://en.wikipedia.org/wiki/Windows_Registry#.REG_files
614 # Reference: http://fileformats.archiveteam.org/wiki/Windows_Registry
615 # Submitted by: Abel Cheung <abelcheung (a] gmail.com>
616 # Update: Joerg Jenderek
617 # Windows 3-9X variant
618 0 string REGEDIT
619 # skip ASCII text like "REGEDITor.txt" but match
620 # L1WMAP.REG with only 1 CRNL or org.gnome.gnumeric.reg with 2 NL
621 >7 search/3 \n Windows Registry text
622 !:mime text/x-ms-regedit
623 !:ext reg
624 # Windows 9X variant
625 >>0 string REGEDIT4 (Win95 or above)
626 # Windows 2K ANSI variant
627 0 string Windows\ Registry\ Editor\
628 >&0 string Version\ 5.00\r\n\r\n Windows Registry text (Win2K or above)
629 !:mime text/x-ms-regedit
630 !:ext reg
631 # Windows 2K UTF-16 variant
632 2 lestring16 Windows\ Registry\ Editor\
633 >0x32 lestring16 Version\ 5.00\r\n\r\n Windows Registry little-endian text (Win2K or above)
634 # relative offset not working
635 #>&0 lestring16 Version\ 5.00\r\n\r\n Windows Registry little-endian text (Win2K or above)
636 !:mime text/x-ms-regedit
637 !:ext reg
638 # WINE variant
639 # URL: https://en.wikipedia.org/wiki/Wine_(software)
640 # Reference: https://www.winehq.org/pipermail/wine-cvs/2005-October/018763.html
641 # Note: WINE use text based registry (system.reg,user.reg,userdef.reg)
642 # instead binary hiv structure like Windows
643 0 string WINE\ REGISTRY\ Version\ WINE registry text
644 # version 2
645 >&0 string x \b, version %s
646 !:mime text/x-wine-extension-reg
647 !:ext reg
648
649 # Windows *.INF *.INI files updated by Joerg Jenderek at Apr 2013, Feb 2018
650 # empty ,comment , section
651 # PR/383: remove unicode BOM because it is not portable across regex impls
652 #0 regex/s \\`(\\r\\n|;|[[])
653 # empty line CRLF
654 0 ubeshort 0x0D0A
655 >0 use ini-file
656 # comment line starting with semicolon
657 0 string ;
658 # look for phrase of Windows policy ADMinistrative template (with starting remark)
659 # like: WINDOW_95_CD/TOOLS/RESKIT/netadmin/poledit/conf.adm
660 >1 search/3548 END\040CATEGORY
661 # ADM with remark (by adm-rem.trid.xml) already done by generic ASCII variant
662 # if no Windows policy ADMinistrative template then Windows INItialization
663 >1 default x
664 >>0 use ini-file
665 # section line starting with left bracket
666 0 string [
667 >0 use ini-file
668 # check and then display Windows INItialization configuration
669 0 name ini-file
670 # look for left bracket in section line
671 >0 search/8192 [
672 # https://en.wikipedia.org/wiki/Autorun.inf
673 # https://msdn.microsoft.com/en-us/library/windows/desktop/cc144200.aspx
674 # space after right bracket
675 # or AutoRun.Amd64 for 64 bit systems
676 # or only NL separator
677 >>&0 regex/c \^autorun
678 # but sometimes total commander directory tree file "treeinfo.wc" with lines like
679 # [AUTORUN]
680 # [boot]
681 >>>&0 string =]\r\n[ Total commander directory treeinfo.wc
682 !:mime text/plain
683 !:ext wc
684 # From: Pal Tamas <folti (a] balabit.hu>
685 # Autorun File
686 >>>&0 string !]\r\n[ Microsoft Windows Autorun file
687 !:mime application/x-setupscript
688 !:ext inf
689 # https://msdn.microsoft.com/en-us/library/windows/hardware/ff549520(v=vs.85).aspx
690 # version strings ASCII coded case-independent for Windows setup information script file
691 >>&0 regex/c \^(version|strings)] Windows setup INFormation
692 !:mime application/x-setupscript
693 #!:mime application/x-wine-extension-inf
694 !:ext inf
695 # NETCRC.INF OEMCPL.INF
696 >>&0 regex/c \^(WinsockCRCList|OEMCPL)] Windows setup INFormation
697 !:mime application/x-setupscript
698 !:ext inf
699 # http://www.winfaq.de/faq_html/Content/tip2500/onlinefaq.php?h=tip2653.htm
700 # https://msdn.microsoft.com/en-us/library/windows/desktop/cc144102.aspx
701 # .ShellClassInfo DeleteOnCopy LocalizedFileNames ASCII coded case-independent
702 >>&0 regex/1024c \^(\\.ShellClassInfo|DeleteOnCopy|LocalizedFileNames)] Windows desktop.ini
703 !:mime application/x-wine-extension-ini
704 #!:mime text/plain
705 # https://support.microsoft.com/kb/84709/
706 >>&0 regex/c \^don't\ load] Windows CONTROL.INI
707 !:mime application/x-wine-extension-ini
708 !:ext ini
709 >>&0 regex/c \^(ndishlp\\$|protman\\$|NETBEUI\\$)] Windows PROTOCOL.INI
710 !:mime application/x-wine-extension-ini
711 !:ext ini
712 # https://technet.microsoft.com/en-us/library/cc722567.aspx
713 # http://www.winfaq.de/faq_html/Content/tip0000/onlinefaq.php?h=tip0137.htm
714 >>&0 regex/c \^(windows|Compatibility|embedding)] Windows WIN.INI
715 !:mime application/x-wine-extension-ini
716 !:ext ini
717 # https://en.wikipedia.org/wiki/SYSTEM.INI
718 >>&0 regex/c \^(boot|386enh|drivers)] Windows SYSTEM.INI
719 !:mime application/x-wine-extension-ini
720 !:ext ini
721 # http://www.mdgx.com/newtip6.htm
722 >>&0 regex/c \^SafeList] Windows IOS.INI
723 !:mime application/x-wine-extension-ini
724 !:ext ini
725 # https://en.wikipedia.org/wiki/NTLDR Windows Boot Loader information
726 >>&0 regex/c \^boot\x20loader] Windows boot.ini
727 !:mime application/x-wine-extension-ini
728 !:ext ini
729 # https://en.wikipedia.org/wiki/CONFIG.SYS
730 >>&0 regex/c \^menu] MS-DOS CONFIG.SYS
731 # @CONFIG.UI configuration file of previous DOS version saved by Caldera OPENDOS INSTALL.EXE
732 # CONFIG.PSS saved version of file CONFIG.SYS created by %WINDIR%\SYSTEM\MSCONFIG.EXE
733 # CONFIG.TSH renamed file CONFIG.SYS.BAT by %WINDIR%\SYSTEM\MSCONFIG.EXE
734 # dos and w40 used in dual booting scene
735 !:ext sys/dos/w40
736 # https://support.microsoft.com/kb/118579/
737 >>&0 regex/c \^Paths]\r\n MS-DOS MSDOS.SYS
738 !:ext sys/dos
739 # http://chmspec.nongnu.org/latest/INI.html#HHP
740 >>&0 regex/c \^options]\r\n Microsoft HTML Help Project
741 !:mime text/plain
742 !:ext hhp
743 # From: Joerg Jenderek
744 # URL: https://documentation.basis.com/BASISHelp/WebHelp/b3odbc/ODBC_Driver/obdcdriv_character_translation.htm
745 # Reference: https://www.garykessler.net/library/file_sigs.html
746 # http://mark0.net/download/triddefs_xml.7z/defs/c/cpx.trid.xml
747 # Note: stored in directory %WINDIR%\SysWOW64 or %WINDIR%\system
748 # second word often Latin but sometimes Cyrillic like in 12510866.CPX
749 >>&0 regex/c \^Windows\ (Latin|Cyrillic) Windows codepage translator
750 #!:mime text/plain
751 !:mime text/x-ms-cpx
752 # like: 12510866.CPX
753 !:ext cpx
754 # From: Joerg Jenderek
755 # URL: https://en.wikipedia.org/wiki/InstallShield
756 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/l/lid-is.trid.xml
757 # Note: contain also 3 keywords like: count Default key0
758 >>&0 regex/c \^Languages] InstallShield Language Identifier
759 #!:mime text/plain
760 !:mime text/x-installshield-lid
761 # like: SETUP.LID
762 !:ext lid
763 # From: Joerg Jenderek
764 # URL: https://www.file-extensions.org/tag-file-extension
765 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/t/taginfo.trid.xml
766 # Note: contain also keywords like: Application Category Company Misc Version
767 >>&0 regex/c \^TagInfo] TagInfo
768 #!:mime text/plain
769 #!:mime text/prs.lines.tag
770 !:mime text/x-ms-tag
771 # like: DATA.TAG
772 !:ext tag
773 # unknown keyword after opening bracket
774 >>&0 default x
775 #>>>&0 string/c x UNKNOWN [%s
776 # look for left bracket of second section
777 >>>&0 search/8192 [
778 # version Strings FileIdentification
779 >>>>&0 string/c version Windows setup INFormation
780 !:mime application/x-setupscript
781 !:ext inf
782 # https://en.wikipedia.org/wiki/Initialization_file Windows Initialization File or other
783 >>>>&0 default x
784 >>>>>&0 ubyte x
785 # characters, digits, underscore and white space followed by right bracket
786 # terminated by CR implies section line to skip BOOTLOG.TXT DETLOG.TXT
787 >>>>>>&-1 regex/T \^([A-Za-z0-9_\(\)\ ]+)\]\r Generic INItialization configuration [%-.40s
788 # NETDEF.INF multiarc.ini
789 #!:mime application/x-setupscript
790 !:mime application/x-wine-extension-ini
791 #!:mime text/plain
792 !:ext ini/inf
793 # UTF-16 BOM
794 0 ubeshort =0xFFFE
795 # look for phrase of Windows policy ADMinistrative template (UTF-16 by adm-uni.trid.xml)
796 # like: wuau.adm
797 >2 search/0x384A E\0N\0D\0\040\0C\0A\0T\0E\0G\0O\0R\0Y\0
798 >>0 use windows-adm
799 # if no Windows policy ADMinistrative template then Windows INFormation
800 >2 default x
801 # UTF-16 BOM followed by CR~0D00 , comment~semicolon~3B00 , section~bracket~5B00
802 >>0 ubelong&0xFFff89FF =0xFFFE0900
803 # look for left bracket in section line
804 >>>2 search/8192 [
805 # keyword without 1st letter which is maybe up-/down-case
806 >>>>&3 lestring16 ersion] Windows setup INFormation
807 !:mime application/x-setupscript
808 # like: hdaudio.inf iscsi.inf spaceport.inf tpm.inf usbhub3.inf UVncVirtualDisplay.inf
809 !:ext inf
810 >>>>&3 lestring16 trings] Windows setup INFormation
811 !:mime application/x-setupscript
812 # like: arduino_gemma.inf iis.inf MSM8960.inf
813 !:ext inf
814 >>>>&3 lestring16 ourceDisksNames] Windows setup INFormation
815 !:mime application/x-setupscript
816 # like: atiixpag.inf mdmnokia.inf netefe32.inf rdpbus.inf
817 !:ext inf
818 # netnwcli.inf start with ;---[ NetNWCli.INX ]
819 >>>>&3 default x
820 # look for NL followed by left bracket
821 >>>>>&0 search/8192 \x0A\x00\x5b
822 # like: defltwk.inf netvwifibus.inf WSDPrint.inf
823 >>>>>>&3 lestring16 ersion] Windows setup INFormation
824 !:mime application/x-setupscript
825 !:ext inf
826
827 # Summary: Windows Policy ADMinistrative template
828 # From: Joerg Jenderek
829 # URL: https://en.wikipedia.org/wiki/Administrative_Template
830 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/a/adm.trid.xml
831 # Note: typically stored in directory like: %WINDIR%\system32\GroupPolicy\ADM
832 # worst case ASCII variant starting with remark line like: inetset.adm
833 0 search/0x4E CLASS\040
834 >&0 string MACHINE
835 >>0 use windows-adm
836 >&0 string USER
837 >>0 use windows-adm
838 # display information about Windows policy ADMinistrative template
839 0 name windows-adm Windows Policy Administrative Template
840 !:mime text/x-ms-adm
841 !:ext adm
842 # UTF-16 BOM implies UTF-16 encoded ADM (by adm-uni.trid.xml)
843 >0 ubeshort =0xFFFE
844 >>2 lestring16 x \b, 1st line "%s"
845 # look for UTF-16 encoded CarriageReturn LineFeed
846 >>>2 search/0x3A \r\0\n\0
847 >>>>&0 lestring16 x \b, 2nd line "%s"
848 # no UTF-16 BOM implies "ASCII" encoded ADM (by adm.trid.xml)
849 >0 ubeshort !0xFFFE
850 >>0 string x \b, 1st line "%s"
851 #>>>&0 ubequad x \b, 2ND %16.16llx
852 # 2nd line empty
853 >>>&2 beshort =0x0D0A
854 >>>>&0 beshort !0x0D0A \b, 3th line
855 >>>>>&-2 string x "%s"
856 # 2nd line with content
857 >>>&2 beshort !0x0D0A \b, 2nd line
858 >>>>&-2 string x "%s"
859
860 # Windows Precompiled INF files *.PNF added by Joerg Jenderek at Mar 2013 of _PNF_HEADER inf.h
861 # http://read.pudn.com/downloads3/sourcecode/windows/248345/win2k/private/windows/setup/setupapi/inf.h__.htm
862 # URL: http://fileformats.archiveteam.org/wiki/INF_(Windows)
863 # Reference: http://en.verysource.com/code/10350344_1/inf.h.html
864 # Note: stored in %Windir%\Inf %Windir%\System32\DriverStore\FileRepository
865 # check for valid major and minor versions: 101h - 303h
866 0 leshort&0xFcFc =0x0000
867 # GRR: line above (strength 50) is too general as it catches also "PDP-11 UNIX/RT ldp" ./pdp
868 >0 leshort&0x0303 !0x0000
869 # test for valid InfStyles: 1 2
870 >>2 uleshort >0
871 >>>2 uleshort <3
872 # look for colon in WinDirPath after PNF header
873 #>>>>0x59 search/18 :
874 # skip few Adobe Photoshop Color swatch ("Mac OS.aco" TRUMATCH-Farben.aco Windows.aco) and some
875 # Targa image (money-256.tga XING_B_UCM8.tga x-fmt-367-signature-id-604.tga) with "invalid low section name" \0
876 >>>>(20.l) ubelong >0x40004000
877 >>>>>0 use PreCompiledInf
878 0 name PreCompiledInf
879 >0 uleshort x Windows Precompiled iNF
880 !:mime application/x-pnf
881 !:ext pnf
882 # major version 1 for older Windows like XP and 3 since about Windows Vista
883 # 101h~95-XP; 301h~Windows Vista-7 ; 302h~Windows 10 14393; 303h~Windows 10 18362-Windows11
884 >1 ubyte x \b, version %u
885 >0 ubyte x \b.%u
886 >0 uleshort =0x0101 (Windows
887 >>4 ulelong&0x00000001 !0x00000001 95-98)
888 >>4 ulelong&0x00000001 =0x00000001 XP)
889 >0 uleshort =0x0301 (Windows Vista-8.1)
890 >0 uleshort =0x0302 (Windows 10 older)
891 >0 uleshort =0x0303 (Windows 10-11)
892 # 1 ,2 (windows 98 SE)
893 >2 uleshort !2 \b, InfStyle %u
894 # PNF_FLAG_IS_UNICODE 0x00000001
895 # PNF_FLAG_HAS_STRINGS 0x00000002
896 # PNF_FLAG_SRCPATH_IS_URL 0x00000004
897 # PNF_FLAG_HAS_VOLATILE_DIRIDS 0x00000008
898 # PNF_FLAG_INF_VERIFIED 0x00000010
899 # PNF_FLAG_INF_DIGITALLY_SIGNED 0x00000020
900 # UNKNOWN8 0x00000080
901 # UNKNOWN 0x00000100
902 # UNKNOWN1 0x01000000
903 # UNKNOWN2 0x02000000
904 >4 ulelong&0x03000180 >0 \b, flags
905 >>4 ulelong x %#x
906 >4 ulelong&0x00000001 0x00000001 \b, unicoded
907 >4 ulelong&0x00000002 0x00000002 \b, has strings
908 >4 ulelong&0x00000004 0x00000004 \b, src URL
909 >4 ulelong&0x00000008 0x00000008 \b, volatile dir ids
910 >4 ulelong&0x00000010 0x00000010 \b, verified
911 >4 ulelong&0x00000020 0x00000020 \b, digitally signed
912 # >4 ulelong&0x00000080 0x00000080 \b, UNKNOWN8
913 # >4 ulelong&0x00000100 0x00000100 \b, UNKNOWN
914 # >4 ulelong&0x01000000 0x01000000 \b, UNKNOWN1
915 # >4 ulelong&0x02000000 0x02000000 \b, UNKNOWN2
916 #>8 ulelong x \b, InfSubstValueListOffset %#x
917 # many 0, 1 lmouusb.PNF, 2 linkfx10.PNF , f webfdr16.PNF
918 # , 6 bth.PNF, 9 usbport.PNF, d netnwifi.PNF, 10h nettcpip.PNF
919 #>12 uleshort x \b, InfSubstValueCount %#x
920 # only < 9 found: 8 hcw85b64.PNF
921 #>14 uleshort x \b, InfVersionDatumCount %#x
922 # only found values lower 0x0000ffff ??
923 #>16 ulelong x \b, InfVersionDataSize %#x
924 # only found positive values lower 0x00ffFFff for InfVersionDataOffset
925 >20 ulelong x \b, at %#x
926 >4 ulelong&0x00000001 =0x00000001
927 # case independent: CatalogFile Class DriverVer layoutfile LayoutFile SetupClass signature Signature
928 >>(20.l) lestring16 x "%s"
929 >4 ulelong&0x00000001 !0x00000001
930 >>(20.l) string x "%s"
931 # FILETIME is number of 100-nanosecond intervals since 1 January 1601
932 #>24 ulequad x \b, InfVersionLastWriteTime %16.16llx
933 >24 qwdate x \b, InfVersionLastWriteTime %s
934 # for Windows 98, XP
935 >0 uleshort <0x0102
936 # only found values lower 0x00ffFFff
937 # often 70 but also 78h for corelist.PNF
938 # >>32 ulelong x \b, StringTableBlockOffset %#x
939 # >>36 ulelong x \b, StringTableBlockSize %#x
940 # >>40 ulelong x \b, InfSectionCount %#x
941 # >>44 ulelong x \b, InfSectionBlockOffset %#x
942 # >>48 ulelong x \b, InfSectionBlockSize %#x
943 # >>52 ulelong x \b, InfLineBlockOffset %#x
944 # >>56 ulelong x \b, InfLineBlockSize %#x
945 # >>60 ulelong x \b, InfValueBlockOffset %#x
946 # >>64 ulelong x \b, InfValueBlockSize %#x
947 # WinDirPathOffset
948 # like 58h, which means direct after PNF header
949 #>>68 ulelong x \b, at %#x
950 >>68 ulelong x
951 >>>4 ulelong&0x00000001 =0x00000001
952 #>>>>(68.l) ubequad =0x43003a005c005700
953 # normally unicoded C:\Windows
954 #>>>>>(68.l) lestring16 x \b, WinDirPath "%s"
955 >>>>(68.l) ubequad !0x43003a005c005700
956 >>>>>(68.l) lestring16 x \b, WinDirPath "%s"
957 >>>4 ulelong&0x00000001 !0x00000001
958 # normally ASCII C:\WINDOWS
959 #>>>>(68.l) string =C:\\WINDOWS \b, WinDirPath "%s"
960 >>>>(68.l) string !C:\\WINDOWS
961 >>>>>(68.l) string x \b, WinDirPath "%s"
962 # found OsLoaderPathOffset values often 0 , once 70h corelist.PNF, once 68h ASCII machine.PNF
963 >>>72 ulelong >0 \b,
964 >>>>4 ulelong&0x00000001 =0x00000001
965 >>>>>(72.l) lestring16 x OsLoaderPath "%s"
966 >>>>4 ulelong&0x00000001 !0x00000001
967 # seldom C:\ instead empty
968 >>>>>(72.l) string x OsLoaderPath "%s"
969 # 1fdh
970 #>>>76 uleshort x \b, StringTableHashBucketCount %#x
971 # https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a
972 # only 407h found
973 >>>78 uleshort !0x409 \b, LanguageID %x
974 #>>>78 uleshort =0x409 \b, LanguageID %x
975 # InfSourcePathOffset often 0
976 >>>80 ulelong >0 \b, at %#x
977 >>>>4 ulelong&0x00000001 =0x00000001
978 >>>>>(80.l) lestring16 x SourcePath "%s"
979 >>>>4 ulelong&0x00000001 !0x00000001
980 >>>>>(80.l) string >\0 SourcePath "%s"
981 # OriginalInfNameOffset often 0
982 >>>84 ulelong >0 \b, at %#x
983 >>>>4 ulelong&0x00000001 =0x00000001
984 >>>>>(84.l) lestring16 x InfName "%s"
985 >>>>4 ulelong&0x00000001 !0x00000001
986 >>>>>(84.l) string >\0 InfName "%s"
987
988 # for newer Windows like Vista, 7 , 8.1 , 10
989 >0 uleshort >0x0101
990 >>80 ulelong x \b, at %#x WinDirPath
991 >>>4 ulelong&0x00000001 0x00000001
992 # normally unicoded C:\Windows
993 #>>>>(80.l) ubequad =0x43003a005c005700
994 #>>>>>(80.l) lestring16 x "%s"
995 >>>>(80.l) ubequad !0x43003a005c005700
996 >>>>>(80.l) lestring16 x "%s"
997 # language id: 0 407h~german 409h~English_US
998 >>90 uleshort !0x409 \b, LanguageID %x
999 #>>90 uleshort =0x409 \b, LanguageID %x
1000 >>92 ulelong >0 \b, at %#x
1001 >>>4 ulelong&0x00000001 0x00000001
1002 # language string like: de-DE en-US
1003 >>>>(92.l) lestring16 x language %s
1004
1005 # Summary: backup file created with utility like NTBACKUP.EXE shipped with Windows NT/2K/XP/2003
1006 # Extension: .bkf
1007 # Created by: Joerg Jenderek
1008 # URL: https://en.wikipedia.org/wiki/NTBackup
1009 # Reference: http://laytongraphics.com/mtf/MTF_100a.PDF
1010 # Descriptor BloCK name of Microsoft Tape Format
1011 0 string TAPE
1012 # Format Logical Address is zero
1013 >20 ulequad 0
1014 # Reserved for MBC is zero
1015 >>28 uleshort 0
1016 # Control Block ID is zero
1017 >>>36 ulelong 0
1018 # BIT4-BIT15, BIT18-BIT31 of block attributes are unused
1019 >>>>4 ulelong&0xFFfcFFe0 0 Windows NTbackup archive
1020 #!:mime application/x-ntbackup
1021 !:ext bkf
1022 # OS ID
1023 >>>>>10 ubyte 1 \b NetWare
1024 >>>>>10 ubyte 13 \b NetWare SMS
1025 >>>>>10 ubyte 14 \b NT
1026 >>>>>10 ubyte 24 \b 3
1027 >>>>>10 ubyte 25 \b OS/2
1028 >>>>>10 ubyte 26 \b 95
1029 >>>>>10 ubyte 27 \b Macintosh
1030 >>>>>10 ubyte 28 \b UNIX
1031 # OS Version (2)
1032 #>>>>>11 ubyte x OS V=%x
1033 # MTF_CONTINUATION Media Sequence Number > 1
1034 #>>>>>4 ulelong&0x00000001 !0 \b, continued
1035 # MTF_COMPRESSION
1036 >>>>>4 ulelong&0x00000004 !0 \b, compressed
1037 # MTF_EOS_AT_EOM End Of Medium was hit during end of set processing
1038 >>>>>4 ulelong&0x00000008 !0 \b, End Of Medium hit
1039 >>>>>4 ulelong&0x00020000 0
1040 # MTF_SET_MAP_EXISTS A Media Based Catalog Set Map may exist on tape
1041 >>>>>>4 ulelong&0x00010000 !0 \b, with catalog
1042 # MTF_FDD_ALLOWED However File/Directory Detail can only exist if a Set Map is also present
1043 >>>>>4 ulelong&0x00020000 !0 \b, with file catalog
1044 # Offset To First Event 238h,240h,28Ch
1045 #>>>>>8 uleshort x \b, event offset %4.4x
1046 # Displayable Size (20e0230h 20e024ch 20e0224h)
1047 #>>>>>8 ulequad x dis. size %16.16llx
1048 # Media Family ID (455288C4h 4570BD1Ah 45708F2Fh 4570BBF5h)
1049 #>>>>>52 ulelong x family ID %8.8x
1050 # TAPE Attributes (3)
1051 #>>>>>56 ulelong x TAPE %8.8x
1052 # Media Sequence Number
1053 >>>>>60 uleshort >1 \b, sequence %u
1054 # Password Encryption Algorithm (3)
1055 >>>>>62 uleshort >0 \b, %#x encrypted
1056 # Soft Filemark Block Size * 512 (2)
1057 #>>>>>64 uleshort =2 \b, soft size %u*512
1058 >>>>>64 uleshort !2 \b, soft size %u*512
1059 # Media Based Catalog Type (1,2)
1060 #>>>>>66 uleshort x \b, catalog type %4.4x
1061 # size of Media Name (66,68,6Eh)
1062 >>>>>68 uleshort >0
1063 # offset of Media Name (5Eh)
1064 >>>>>>70 uleshort >0
1065 # 0~, 1~ANSI, 2~UNICODE
1066 >>>>>>>48 ubyte 1
1067 # size terminated ansi coded string normally followed by "MTF Media Label"
1068 >>>>>>>>(70.s) string >\0 \b, name: %s
1069 >>>>>>>48 ubyte 2
1070 # Not null, but size terminated unicoded string
1071 >>>>>>>>(70.s) lestring16 x \b, name: %s
1072 # size of Media Label (104h)
1073 >>>>>72 uleshort >0
1074 # offset of Media Label (C4h,C6h,CCh)
1075 >>>>>74 uleshort >0
1076 >>>>>>48 ubyte 1
1077 #Tag|Version|Vendor|Vendor ID|Creation Time Stamp|Cartridge Label|Side|Media ID|Media Domain ID|Vendor Specific fields
1078 >>>>>>>(74.s) string >\0 \b, label: %s
1079 >>>>>>48 ubyte 2
1080 >>>>>>>(74.s) lestring16 x \b, label: %s
1081 # size of password name (0,1Ch)
1082 #>>>>>76 uleshort >0 \b, password size %4.4x
1083 # Software Vendor ID (CBEh)
1084 >>>>>86 uleshort x \b, software (%#x)
1085 # size of Software Name (6Eh)
1086 >>>>>80 uleshort >0
1087 # offset of Software Name (1C8h,1CAh,1D0h)
1088 >>>>>>82 uleshort >0
1089 # 1~ANSI, 2~UNICODE
1090 >>>>>>>48 ubyte 1
1091 >>>>>>>>(82.s) string >\0 \b: %s
1092 >>>>>>>48 ubyte 2
1093 # size terminated unicoded coded string normally followed by "SPAD"
1094 >>>>>>>>(82.s) lestring16 x \b: %s
1095 # Format Logical Block Size (512,1024)
1096 #>>>>>84 uleshort =1024 \b, block size %u
1097 >>>>>84 uleshort !1024 \b, block size %u
1098 # Media Date of MTF_DATE_TIME type with 5 bytes
1099 #>>>>>>88 ubequad x DATE %16.16llx
1100 # MTF Major Version (1)
1101 #>>>>>>93 ubyte x \b, MFT version %x
1102 #
1103
1104 # URL: https://en.wikipedia.org/wiki/PaintShop_Pro
1105 # Reference: https://www.cryer.co.uk/file-types/p/pal.htm
1106 # Created by: Joerg Jenderek
1107 # Note: there exist other color palette formats also with .pal extension
1108 0 string JASC-PAL\r\n PaintShop Pro color palette
1109 #!:mime text/plain
1110 # PspPalette extension is used by newer (probably 8) PaintShopPro versions
1111 !:ext pal/PspPalette
1112 # 2nd line contains palette file version. For example "0100"
1113 >10 string !0100 \b, version %.4s
1114 # third line contains the number of colours: 16 256 ...
1115 >16 string x \b, %.3s colors
1116
1117 # URL: https://en.wikipedia.org/wiki/Innosetup
1118 # Reference: https://github.com/jrsoftware/issrc/blob/master/Projects/Undo.pas
1119 # Created by: Joerg Jenderek
1120 # Note: created by like "InnoSetup self-extracting archive" inside ./msdos
1121 # TrID labeles the entry as "Inno Setup Uninstall Log"
1122 # TUninstallLogID
1123 0 string Inno\ Setup\ Uninstall\ Log\ (b) InnoSetup Log
1124 !:mime application/x-innosetup
1125 # unins000.dat, unins001.dat, ...
1126 !:ext dat
1127 # " 64-bit" variant
1128 >0x1c string >\0 \b%.7s
1129 # AppName[0x80] like "Minimal SYStem", ClamWin Free Antivirus , ...
1130 >0xc0 string x %s
1131 # AppId[0x80] is similar to AppName or
1132 # GUID like {4BB0DCDC-BC24-49EC-8937-72956C33A470} start with left brace
1133 >0x40 ubyte 0x7b
1134 >>0x40 string x %-.38s
1135 # do not know how this log version correlates to program version
1136 >0x140 ulelong x \b, version %#x
1137 # NumRecs
1138 #>0x144 ulelong x \b, %#4.4x records
1139 # EndOffset means files size
1140 >0x148 ulelong x \b, %u bytes
1141 # Flags 5 25h 35h
1142 #>0x14c ulelong x \b, flags %8.8x
1143 # Reserved: array[0..26] of Longint
1144 # the non Unicode HighestSupportedVersion may never become greater than or equal to 1000
1145 >0x140 ulelong <1000
1146 # hostname
1147 >>0x1d6 pstring x \b, %s
1148 # user name
1149 >>>&0 pstring x \b\%s
1150 # directory like C:\Program Files (x86)\GnuWin32
1151 >>>>&0 pstring x \b, "%s"
1152 # version 1000 or higher implies unicode
1153 >0x140 ulelong >999
1154 # hostname
1155 >>0x1db lestring16 x \b, %-.9s
1156 # utf string variant with prepending fe??ffFFff
1157 >>0x1db search/43 \xFF\xFF\xFF
1158 # user name
1159 >>>&0 lestring16 x \b\%-.9s
1160 >>>&0 search/43 \xFF\xFF\xFF
1161 # directory like C:\Program Files\GIMP 2
1162 >>>>&0 lestring16 x \b, %-.42s
1163
1164 # URL: https://jrsoftware.org/ishelp/index.php?topic=setup_signeduninstaller
1165 # Reference:https://github.com/jrsoftware/issrc/blob/main/Projects/Struct.pas
1166 # From: Joerg Jenderek
1167 0 string Inno\ Setup\ Messages\ (
1168 # null padded til 0x40 boundary
1169 >0x38 quad 0 InnoSetup messages
1170 !:mime application/x-innosetup-msg
1171 # unins000.msg, unins001.msg, ...
1172 !:ext msg
1173 # version like 5.1.1 5.1.11 5.5.0 5.5.3 6.0.0
1174 >>0x15 string x \b, version %.5s
1175 # look for 6th char of version string or terminating right parentheses
1176 >>>0x1a ubyte !0x29 \b%c
1177 # NumMessages
1178 >>0x40 ulelong x \b, %u messages
1179 # TotalSize: Cardinal;
1180 #>>0x44 ulelong x \b, TotalSize %u
1181 # NotTotalSize: Cardinal;
1182 #>>0x48 ulelong x \b, NotTotalSize %u
1183 # CRCMessages: Longint;
1184 #>>0x4C ulelong x \b, CRC %#x
1185 >>0x40 ulelong x
1186 # (u) after version means unicoded messages
1187 >>>0x1c search/2 (u) (UTF-16),
1188 >>>>0x50 lestring16 x %s
1189 # ASCII coded message
1190 >>>0x1c default x (ASCII),
1191 >>>>0x50 string x %s
1192
1193 # Windows Imaging (WIM) Image
1194 # Update: Joerg Jenderek at Mar 2019, 2021
1195 # URL: https://en.wikipedia.org/wiki/Windows_Imaging_Format
1196 # http://fileformats.archiveteam.org/wiki/Windows_Imaging_Format
1197 # Reference: https://download.microsoft.com/download/f/e/f/
1198 # fefdc36e-392d-4678-9e4e-771ffa2692ab/Windows%20Imaging%20File%20Format.rtf
1199 # Note: verified by like `7z t boot.wim` `wiminfo install.esd --header`
1200 0 string MSWIM\000\000\000
1201 >0 use wim-archive
1202 # https://wimlib.net/man1/wimoptimize.html
1203 0 string WLPWM\000\000\000
1204 >0 use wim-archive
1205 0 name wim-archive
1206 # _WIMHEADER_V1_PACKED ImageTag[8]
1207 >0 string x Windows imaging
1208 !:mime application/x-ms-wim
1209 # TO avoid in file version 5.36 error like
1210 # Magdir/windows, 760: Warning: Current entry does not yet have a description
1211 # file: could not find any valid magic files! (No error)
1212 # split WIM
1213 >16 ulelong &0x00000008 (SWM
1214 !:ext swm
1215 # usPartNumber; 1, unless the file was split into multiple parts
1216 >>40 uleshort x \b %u
1217 # usTotalParts; The total number of WIM file parts in a spanned set
1218 >>42 uleshort x \b of %u) image
1219 # non split WIM
1220 >16 ulelong ^0x00000008
1221 # https://wimlib.net/man1/wimmount.html
1222 # solid WIMs; version 3584; usually contain LZMS-compressed and the .esd extension
1223 >>12 ulelong 3584 (ESD) image
1224 !:ext esd
1225 >>12 ulelong !3584 (
1226 # look for archive member RunTime.xml like in Microsoft.Windows.Cosa.Desktop.Client.ppkg
1227 >>>156 search/68233/s RunTime.xml \bWindows provisioning package)
1228 !:ext ppkg
1229 # if is is not a Windows provisioning package, then it is a WIM
1230 >>>156 default x \bWIM) image
1231 # second disk image part created by Microsoft's RecoveryDrive.exe has name Reconstruct.WIM2
1232 !:ext wim/wim2
1233 >0 string/b WLPWM\000\000\000 \b, wimlib pipable format
1234 # cbSize size of the WIM header in bytes like 208
1235 #>8 ulelong x \b, headersize %u
1236 # dwVersion version of the WIM file 00010d00h~1.13 00000e00h~0.14
1237 >14 uleshort x v%u
1238 >13 ubyte x \b.%u
1239 # dwImageCount; The number of images contained in the WIM file
1240 >44 ulelong >1 \b, %u images
1241 # dwBootIndex
1242 # 1-based index of the bootable image of the WIM, or 0 if no image is bootable
1243 >0x78 ulelong >0 \b, bootable no. %u
1244 # dwFlags
1245 #>16 ulelong x \b, flags %#8.8x
1246 #define FLAG_HEADER_COMPRESSION 0x00000002
1247 #define FLAG_HEADER_READONLY 0x00000004
1248 #define FLAG_HEADER_SPANNED 0x00000008
1249 #define FLAG_HEADER_RESOURCE_ONLY 0x00000010
1250 #define FLAG_HEADER_METADATA_ONLY 0x00000020
1251 #define FLAG_HEADER_WRITE_IN_PROGRESS 0x00000040
1252 #define FLAG_HEADER_RP_FIX 0x00000080 reparse point fixup
1253 #define FLAG_HEADER_COMPRESS_RESERVED 0x00010000
1254 #define FLAG_HEADER_COMPRESS_XPRESS 0x00020000
1255 #define FLAG_HEADER_COMPRESS_LZX 0x00040000
1256 #define FLAG_HEADER_COMPRESS_LZMS 0x00080000
1257 #define FLAG_HEADER_COMPRESS_XPRESS2 0x00100000 wimlib-1.13.0\include\wimlib\header.h
1258 # XPRESS, with small chunk size
1259 >16 ulelong &0x00100000 \b, XPRESS2
1260 >16 ulelong &0x00080000 \b, LZMS
1261 >16 ulelong &0x00040000 \b, LZX
1262 >16 ulelong &0x00020000 \b, XPRESS
1263 >16 ulelong &0x00000002 compressed
1264 >16 ulelong &0x00000004 \b, read only
1265 >16 ulelong &0x00000010 \b, resource only
1266 >16 ulelong &0x00000020 \b, metadata only
1267 >16 ulelong &0x00000080 \b, reparse point fixup
1268 #>16 ulelong &0x00010000 \b, RESERVED
1269 # dwCompressionSize; Uncompressed chunk size for resources or 0 if uncompressed
1270 #>20 ulelong >0 \b, chunk size %u bytes
1271 # gWIMGuid
1272 #>24 ubequad x \b, GUID %#16.16llx
1273 #>>32 ubequad x \b%16.16llx
1274 # rhOffsetTable; the location of the resource lookup table
1275 # wim_reshdr_disk[24]= u8 size_in_wim[7] + u8 flags + le64 offset_in_wim + le64 uncompressed_size
1276 #>48 ubequad x \b, rhOffsetTable %#16.16llx
1277 # rhXmlData; the location of the XML data
1278 #>0x50 ulelong x \b, at %#8.8x
1279 # NOT WORKING \xff\xfe<\0W\0I\0M\0
1280 #>(0x50.l) ubequad x \b, xml=%16.16llx
1281 # rhBootMetadata; the location of the metadata resource
1282 #>0x60 ubequad x \b, rhBootMetadata %#16.16llx
1283 # rhIntegrity; the location of integrity table used to verify files
1284 #>0x7c ubequad x \b, rhIntegrity %#16.16llx
1285 # Unused[60]
1286 #>148 ubequad !0 \b,unused %#16.16llx
1287 #
1288
1289 # From: Joerg Jenderek
1290 # URL: https://en.wikipedia.org/wiki/Windows_Easy_Transfer
1291 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/m/mig.trid.xml
1292 # Note: called "Windows Easy Transfer migration data" by TrID,
1293 # "Migration Store" or "EasyTransfer file" by Microsoft
1294 0 string 1giM Windows Easy Transfer migration data
1295 #!:mime application/octet-stream
1296 !:mime application/x-ms-mig
1297 !:ext mig
1298 >0x18 string =MRTS without password
1299 # data offset with 1 space at end
1300 >>0x1c ulelong+0x38 x \b, at %#x
1301 # look for zlib compressed data by ./compress
1302 >>(0x1c.l+0x38) ubyte x
1303 >>>&-1 indirect x
1304 # in password protected examples MRTS comes some bytes further
1305 >0x18 string !MRTS with password
1306 # look for first MRTS tag
1307 >0x18 search/29/b MRTS
1308 # probably first file name length like 178, ...
1309 #>>&0 ulelong x \b, 1st length %u
1310 # URL like File\C:\Users\nutzer\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\desktop.ini
1311 >>&20 lestring16 x \b, 1st %-s
1312
1313 # Microsoft SYLK
1314 # https://en.wikipedia.org/wiki/SYmbolic_LinK_(SYLK)
1315 # https://outflank.nl/upload/sylksum.txt
1316 0 string ID;P Microsoft SYLK program
1317 >4 string >0 \b, created by %s
1318 !:ext slk/sylk
1319
1320 # Summary: Windows Performance Monitor Alert
1321 # From: Joerg Jenderek
1322 # URL: https://en.wikipedia.org/wiki/Performance_Monitor
1323 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/p/pma.trid.xml
1324 # Note: called "Windows Performance Monitor Alert" by TrID
1325 0 ubelong =0xDC058340
1326 >4 ubyte =0 Windows Performance Monitor Alert
1327 #!:mime application/octet-stream
1328 # https://www.thoughtco.com/mime-types-by-content-type-3469108
1329 # https://filext.com/file-extension/PAM
1330 !:mime application/x-perfmon
1331 #!:mime application/x-ms-pma
1332 !:ext pma
1333 # metric type like: "BrowserMetrics" "CrashpadMetrics" "SetupMetrics"
1334 >>80 string x \b, "%s"
1335
1336 # From: Joerg Jenderek
1337 # URL: https://en.wikipedia.org/wiki/InstallShield
1338 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/i/ins.trid.xml
1339 # Note: contain also keywords like: BATCH_INSTALL ISVERSION LOGHANDLE SRCDIR SRCDISK WINDIR WINSYSDISK
1340 0 ubelong 0xB8C90C00 InstallShield Script
1341 #!:mime application/octet-stream
1342 !:mime application/x-installshield-ins
1343 # like test.ins Setup.ins
1344 !:ext ins
1345 # UNKNOWN like: 160034121de07e00 1600341260befe00 16003412e0783700
1346 # 5000010021083f00 50000100b0335600 50000100cbfdf800 50000100dfbc4700
1347 #>4 ubequad x \b, at 4 %#16.16llx
1348 # copyright text like: "Stirling Technologies, Inc. (c) 1990-1994"
1349 # "InstallSHIELD Software Coporation (c) 1990-1997"
1350 >13 pstring/h x "%s"
1351 # look for specific ASCII variable names
1352 >1 search/0x121/s SRCDIR \b, variable names:
1353 # 1st like: SRCDIR
1354 >>&-4 leshort x #%u
1355 >>&-2 pstring/h x %s
1356 # 2nd like: SRCDISK
1357 >>>&0 leshort x #%u
1358 >>>&2 pstring/h x %s
1359 # 3rd like: TARGETDISK
1360 >>>>&0 leshort x #%u
1361 >>>>&2 pstring/h x %s
1362 # 4th like: TARGETDIR
1363 #>>>>>&0 leshort x #%u
1364 #>>>>>&2 pstring/h x %s
1365 # 5th like: WINDIR
1366 #>>>>>>&0 leshort x #%u
1367 #>>>>>>&2 pstring/h x %s
1368 # 6th like: WINDISK
1369 #>>>>>>>&0 leshort x #%u
1370 #>>>>>>>&2 pstring/h x %s
1371 # 7th like: WINSYSDIR
1372 #>>>>>>>>&0 leshort x #%u
1373 #>>>>>>>>&2 pstring/h x %s
1374 # ... LOGHANDLE
1375 >0 ubelong x ...
1376 #
1377