Program information file

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Replaced hex dump with links to some sample files)
(Category:MS-DOS)
 
(One intermediate revision by one user not shown)
Line 4: Line 4:
 
| subcat                = Executables
 
| subcat                = Executables
 
| extensions            = {{ext|pif}}
 
| extensions            = {{ext|pif}}
| released              = ~1985
+
| released              = ~1984
 
}}
 
}}
Program information file (aka PIF file) is used by the multitasking Windows environment to describe how to open a legacy DOS program. It contains things like the amount of available memory (conventional, high, extended, expanded), the number of rows and columns of ASCII output on screen, mouse capture, full screen mode, behaviour of the window after program termination, etc.
+
A '''Program information file''' ('''PIF''') is used by multitasking environments, mainly Microsoft Windows, to describe how to open a legacy DOS program. It contains things like the amount of available memory (conventional, high, extended, expanded), the number of rows and columns of ASCII output on screen, mouse capture, full screen mode, behaviour of the window after program termination, etc.
  
PIFs themselves should have no executable code, but due to the way current Windows OS handles these files, if the file with such extension were to contain an executable it would run on double click. Because of this these files should be included in virus scans.
+
The original 369-byte version of the format comes from TopView by IBM. Essentially the same format is used by Windows 1 and 2. An extended version of the format is used by Windows 3+. A different extension is [[DESQview Program Information File]].
 +
 
 +
== Identification ==
 +
PIF files for Windows 3+ have ASCII "{{magic|MICROSOFT PIFEX}}", followed by byte <code>0x00</code>, at offset 369.
 +
 
 +
There doesn't seem to be a simple way to identify the original 369-byte format.
 +
 
 +
== Specifications ==
 +
* [https://www.fileformat.info/format/pif/corion.htm The Program Information File (PIF) File Format], from FileFormat.Info and Corion.net
 +
* [https://web.archive.org/web/20220214185118/http://www.smsoft.ru/en/pifdoc.htm The PIF file format in various Windows versions] (archived)
  
 
== Sample files ==
 
== Sample files ==
Line 23: Line 32:
 
[[Category:Metadata]]
 
[[Category:Metadata]]
 
[[Category:Microsoft]]
 
[[Category:Microsoft]]
 +
[[Category:IBM]]
 
[[Category:Windows]]
 
[[Category:Windows]]
 +
[[Category:MS-DOS]]

Latest revision as of 19:03, 14 October 2023

File Format
Name Program information file
Ontology
Extension(s) .pif
Released ~1984

A Program information file (PIF) is used by multitasking environments, mainly Microsoft Windows, to describe how to open a legacy DOS program. It contains things like the amount of available memory (conventional, high, extended, expanded), the number of rows and columns of ASCII output on screen, mouse capture, full screen mode, behaviour of the window after program termination, etc.

The original 369-byte version of the format comes from TopView by IBM. Essentially the same format is used by Windows 1 and 2. An extended version of the format is used by Windows 3+. A different extension is DESQview Program Information File.

Contents

[edit] Identification

PIF files for Windows 3+ have ASCII "MICROSOFT PIFEX", followed by byte 0x00, at offset 369.

There doesn't seem to be a simple way to identify the original 369-byte format.

[edit] Specifications

[edit] Sample files

Old format:

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox